-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Mysql needs to be run as root #261
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
Comments
Hi, Having mysql run as the root user is considered a security problem, so the daemon won't let you do it by default. Most likely, you just need to add a «user=mysql» to your server configuration. |
Hi thanks for replying :) This is the mysql command I have in the docker-entrypoint.sh, it's not enough for mysql ? And this is the script :
|
Closing since this appears to be an issue with a custom image, not this one. In the future, these sorts of questions/requests would be more appropriately posted to the Docker Community Forums, the Docker Community Slack, or Stack Overflow. Thanks! |
Hi,
I have some trouble to run my mysql docker. Here is my error :
This is my docker compose :
And my Dockerfile :
Versions :
I've seen several posts with the same kind of error (#216, #45) but I don't think that I have the same problem (no mount and MYSQL_HOST is set to localhost).
Thanks for your help!
The text was updated successfully, but these errors were encountered: