Mysql container for docker
-
Fork the repository
-
Edit the user password within bootstrap.sh - this is currently set to 'idareyounottochangethis'
-
Build the docker container
Example:
$ sudo docker build -t digia_mysql github.com/digia/docker-mysql
- Run the container
$ sudo docker run -d -p 3306:3306 -v /data/mysql:/var/lib/mysql digia_mysql
NOTE: If you do not use -v to mount a volume within the container you run the risk of loosing all of your MySQL data!!