Skip to content
This repository has been archived by the owner on Jun 6, 2023. It is now read-only.

container fails to create in Kubernetes cluster with a runAsNonRoot PSP #62

Open
djschny opened this issue Sep 17, 2021 · 0 comments · May be fixed by #79
Open

container fails to create in Kubernetes cluster with a runAsNonRoot PSP #62

djschny opened this issue Sep 17, 2021 · 0 comments · May be fixed by #79

Comments

@djschny
Copy link

djschny commented Sep 17, 2021

If you try to run the image in a Kubernetes cluster that has a PSP policy for nonRoot, you get the following error:

Error: container has runAsNonRoot and image has non-numeric user (curl_user), cannot verify user is non-root

In the Dockerfile when the curl_user is created if we set the UID then to something we know and then change the USER line to be the UID of the curl_user then I think it will solve this without negatively impacting the current design/setup.

j4m3s-s added a commit to j4m3s-s/curl-docker that referenced this issue May 11, 2023
@j4m3s-s j4m3s-s linked a pull request May 11, 2023 that will close this issue
j4m3s-s added a commit to j4m3s-s/curl-docker that referenced this issue May 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant