curl-docker icon indicating copy to clipboard operation
curl-docker copied to clipboard

container fails to create in Kubernetes cluster with a runAsNonRoot PSP

Open djschny opened this issue 2 years ago • 0 comments

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.

djschny avatar Sep 17 '21 16:09 djschny