Skip to content

Use UID number rather than username in Dockerfile #547

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

candrews
Copy link

Systems configured to disallow running images as root aren't able to run images that use user name string values for the USER because they can't validate that a named user isn't root. To allow this image to run on such systems, use the uid of the user as the value for USER instead of the username.

See: kubernetes/kubernetes#56503

Systems configured to disallow running images as root aren't able to run images that use user name string values for the USER because they can't validate that a named user isn't root. To allow this image to run on such systems, use the uid of the user as the value for USER instead of the username.

See: kubernetes/kubernetes#56503

Signed-off-by: Craig Andrews <candrews@integralblue.com>
@tianon
Copy link
Member

tianon commented Jul 17, 2025

Closing as a duplicate of #442 (as you've noted over there).

@tianon tianon closed this Jul 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants