This repository contains Dockerfile of MySQL for Docker's automated build published to the public Docker Hub Registry.
- [debian:stable]
-
Install Docker.
-
Download this Dockerfile into a directory named as you desire mkdir mysql; cd mysql; wget https://raw.githubusercontent.com/web20opensource/mysql/master/Dockerfile
-
build docker build - < Dockerfile
docker run -d --name mysql -p 3306:3306 dockerfile/mysql
docker run -it --rm --link mysql:mysql dockerfile/mysql bash -c 'mysql -h $MYSQL_PORT_3306_TCP_ADDR'