-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Creating my own mysql image #214
Comments
/var/lib/mysql is set as a volume in the mysql image, meaning the data there won't be stored in the image. |
Hi @ltangvald Thanks for getting back to me. Would what I'm trying to achieve here be better off put into an init.sh script or something like that and then called from the Dockerfile? |
Does it need to be stored in the image itself, or is it enough to run this init the first time the image is started? |
Thanks everyone, I realised I was massively overcomplicating things here. In the end I created my own image, using this Dockerfile. FROM mysql:5.6 RUN { I've then uploaded that image to our docker repo and we call that when we create databases that we use. I then do everything else I need to do, which isn't a lot, in the docker-compose or docker-cloud files. Thans again. |
Addresses issues like docker-library#255 and docker-library#214
Hi Everyone
I'm pretty sure this isn't an issue with the library, more an issue with me doing something wrong.
This is what I'm trying to accomplish.
Create an image of mysql mysql:5.6.33, with the listen address set to anywhere, and then use a grant statement to give a user permission to access all the databases, from anywhere, with a password.
I'm trying to do this in a Dockerfile, but I keep bumping into problems and it's driving me nuts.
It can't be this hard, so I must be doing something stupid.
This is where I'm currently at in my Dockerfile, I've tried 'alot' of things to get it to work, no joy so far :-(
The text was updated successfully, but these errors were encountered: