curl-docker
curl-docker copied to clipboard
container fails to create in Kubernetes cluster with a runAsNonRoot PSP
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.