-
Notifications
You must be signed in to change notification settings - Fork 42
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
Run as different user than root? #89
Comments
Hey, yeah |
It's a very big and large problem in docker this volume permissions but unfortunately they are not doing anything about it So right now we have to use hacks and bake gosu into the image entrypoint to achieve that It can be made optional with an env var, since it will still run as root but execute the entrypoint as the specified user with the GID and UID taken from a file in a mounted volume |
Yeap that is my experience with it also, is a mess. Wonder if it would be possible in the postfix-relay case to generate config files with uid/gid to use? maybe postfix supports it? no idea. |
I run docker compose as an user other than root and to avoid filesystem permissions issues on my mounted files I change the user and group id to match the user running docker
Unfortunately the image fails to run with another user than root
/bin/bash: /root/run: Permission denied
The text was updated successfully, but these errors were encountered: