Use configurable UID/GID with a non-root default#205
Use configurable UID/GID with a non-root default#205oxdc wants to merge 2 commits intolennart-k:mainfrom
Conversation
|
Defaulting to a non-root user makes sense indeed although I am not sure whether 65534 is the correct choice for that, one of the reasons being that nobody is a bit special for NFS. Changing the default user would definitely be a breaking change for existing users so this should be a major ( I think most programs use I don't really see how the |
Thank you for pointing this out. I'm not familiar with NFS.
Note: Pocket-ID uses
Sorry, I linked the wrong doc. Maybe https://www.docker.com/blog/understanding-the-docker-user-instruction/ is more relevant. |
|
Modified the PR to use PUID/PGID=1000 by default and to automatically chown the data directory on startup. |
Make it possible to run the docker container as a non-root user, defaulting to 65534, the conventional nobody user.