-
Notifications
You must be signed in to change notification settings - Fork 137
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
Use a fixed uid and gid #53
Comments
Paging @tianon . What is the best practice on uid/gids when it comes to Docker? I've seen this issue many times over and see plusses and minuses to @RussellMcOrmond 's suggestion. |
So, doing Making the exact IDs used explicit is generally a good idea for future compatibility. 👍 |
(The difficult part is choosing good ones that aren't likely to overlap with new additions to the base in the future.) |
What the Solr image does is use the default port number for the uid/gid as well. If there is a conflict in future, it will be known and users can be informed of any changes in documentation. |
@RussellMcOrmond That's a good idea, thanks. |
Currently the Dockerfile uses:
groupadd -r couchdb && useradd -d /var/lib/couchdb -g couchdb couchdb
So that externally mounted directories can maintain the correct permissions, and 'ps' and other tools on the host show the IDs correctly, it would be ideal if a fixed uid and gid were assigned rather than the default of using the next available id's.
The text was updated successfully, but these errors were encountered: