-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Using unprivileged users #277
Comments
On Linux, you would normally use I believe all you need is to have the right entry in |
Yeah makes sense, thanks |
Oh, I forgot to say this. If it is fine to use a uid (i.e., number) and you don't have to use a name (like |
I'm trying to modify a docker image using the distroless base image. I added a
USER
directive to run as the binary, and as expected the runCMD
failed due to the user not existing.According to #235 it should be easy to override, but adding the user isn't actually possible because you can't
RUN
anything because of the lack of a shell.How should one add another user here?
The text was updated successfully, but these errors were encountered: