Skip to content

Difference between PUID PGID and the docker-compose user and groupadd #5

Answered by thespad
dimitur2204 asked this question in Baseimages
Discussion options

You must be logged in to vote

TL;DR. PUID & PGID predate user being a viable option for running containers reliably as a non-root user and are our implementation allowing root init with a switch to a non-root user for running the application itself. The user directive starts the container init as that user, rather than root, but the docker daemon is still running as root.

Some of our images do now support running as a non-root user but not all of them.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dimitur2204
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants