Skip to content

Added MYSQL_UID and MYSQL_GID optional arguments / env. variables #473

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

Closed
wants to merge 3 commits into from

Conversation

optimistiCli
Copy link

Passing uid and gid to “docker build” allows for consistent mysql user / group across host and image.

Also some hosts might have different (compared to debian) ideas about what uid / gid ranges are reserved for system users.

Hope this helps :-)

@optimistiCli
Copy link
Author

Travis CI keeps failing on network timeouts. I guess it's time for me to give up trying to get through this hurdle :-)

@yosifkit
Copy link
Member

This is unnecessary. Since #161 the image can be run as whatever user id is desired via --user and user: to docker run and in a docker compose file, respectively.

The only assumption is that if the container is given a local folder (-v /some/host/path:/var/lib/mysql), then the folder would need to have appropriate permissions for the user specified in the docker run or compose file.

@yosifkit yosifkit closed this Aug 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants