docker icon indicating copy to clipboard operation
docker copied to clipboard

gosu prevents running container as unprivileged user

Open mtdcr opened this issue 2 years ago • 0 comments

When running a container with a fixed unprivileged UID, gosu can not be executed. It would be really nice if gosu could be made optional, for example when a specific environment variable is present.

Currently, I set user: 12345678:12345678, userns_mode: host in docker-compose.yml and provide volumes for /var/www/html and /etc/dovecot/private where this UID may read/write in order to run an unprivileged container, but I need to remove gosu from the entrypoint to make it work.

mtdcr avatar Nov 17 '23 22:11 mtdcr