Skip to content
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

MySQL 5.6.22 image is broken #45

Closed
thaJeztah opened this issue Jan 28, 2015 · 3 comments
Closed

MySQL 5.6.22 image is broken #45

thaJeztah opened this issue Jan 28, 2015 · 3 comments

Comments

@thaJeztah
Copy link

There seems to bee an issue with the MySQL 5.6.22 image on the registry.

This came to light while discussing another issue; #44 (comment)

To reproduce:

docker run -d -h mysql --name mysqltmount_all_dir -v $PWD/mysql/var/lib/mysql:/var/lib/mysql -v $PWD/mysql/etc/mysql:/etc/mysql -e MYSQL_ROOT_PASSWORD=test -e MYSQL_USER=mmx -e MYSQL_PASSWORD=mmx -e MYSQL_DATABASE=mmx mysql:5.6.22

And check the logs;

docker logs mysqltmount_all_dir

....

2015-01-28 21:08:53 1 [ERROR] Fatal error: Please read "Security" section of the manual to find out how to run mysqld as root!

2015-01-28 21:08:53 1 [ERROR] Aborting

2015-01-28 21:08:53 1 [Note] Binlog end
2015-01-28 21:08:53 1 [Note] mysqld: Shutdown complete

I've pasted the full logs here:
https://gist.github.com/thaJeztah/62dc9d655e8e836414f7

@thaJeztah
Copy link
Author

Also, MySQL:5.6 seems to be an alias for MySQL:5.6.21, not MySQL:5.6.22

Nevermind, hadn't pulled that image, LOL

@yosifkit
Copy link
Member

It complains about root because you bind mount over the config: 12ffb2f#commitcomment-9444466

@thaJeztah
Copy link
Author

Ah, you could be right. Was assisting someone with his use-case and didn't notice he was bind-mounting the config-dir as well.

Yes, simplifying to this works:

docker run -d -h mysql --name mysqltmount_all_dir -v $PWD/mysql/var/lib/mysql:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=test -e MYSQL_USER=mmx -e MYSQL_PASSWORD=mmx -e MYSQL_DATABASE=mmx mysql:5.6.22

I'll close. Sorry for the mis-report

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

No branches or pull requests

2 participants