-
Notifications
You must be signed in to change notification settings - Fork 1
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
s6-applyuidgid when downgrading to non-root user #1
Comments
Hi, sorry for the late reply. Have you tried without setting the user in Dockerfile? Because the error seems to be at the user-group-modification task where the PUID/PGID/extra-groups is updated. The |
I tried removing the USER directive. When I run this directly with docker build + docker run the user inside the container appears to be alpine. However, I am running my setup with docker compose. For setting the user correctly in a docker composed setup there are two options: either set the USER directive in the dockerfile or set the user directive in the docker compose file. Both options result in the error: |
You could do one thing, switch the entrypoint back to |
Thank you, it appears it worked! |
Hi, I have a dockerfile which tries downgrading to non-root user and results in this error:
s6-applyuidgid: fatal: unable to set supplementary group list: Operation not permitted
The dockerfile:
Is there something I'm missing? I also tried creating my user and using the S6 env vars to override the default group/user but that didn't help, and I'd rather keep this simple with the existing alpine user.
The text was updated successfully, but these errors were encountered: