Public | Automated Build

Last pushed: 3 years ago
Short Description
Short description is empty for this repo.
Full Description


Docker container for MySQL Community 5.6.x with updates running on docker-centos6-base, using docker data volume persistence for the MySQL data directory.


Based on docker-centos6-base:

Expects to find a running data volume container named "centos6-data-volume-container" and sharing /var/lib/data. See docker-centos6-data-volume-container:


Change the MySQL admin account password created in to something else, then run "". Image is tagged as "centos6-mysql56".


Ensure that the data volume container is running (see Dependencies), then start the mysql container by running "".

MySQL will be exposed on port 3306 and it will use the data volume on /var/lib/mysql for persistence.

Please read the Docker docs for data volumes to understand how this persistence works and how you would configure backups:


Pay attention to VirtualBox TCP port forwarding if you are running this container on a Mac. Otherwise, port forwarding will be broken for no apparent reason.

See this issue for more information:

The script "" is an example of how to connect to MySQL after port mapping to localhost:3307 from VirtualBox:3306 with:

VBoxManage controlvm boot2docker-vm natpf1 "mysql,tcp,,3307,,3306"


Licensed under the Apache Software License 2.0. See file.

Docker Pull Command