Dockerfile/alpine-mysql
ehlxr 924b7874c4 feat(): add alpine mysql dockerfile
Signed-off-by: ehlxr <ehlxr.me@gmail.com>
2018-03-30 15:24:39 +08:00
..
Dockerfile feat(): add alpine mysql dockerfile 2018-03-30 15:24:39 +08:00
my.cnf feat(): add alpine mysql dockerfile 2018-03-30 15:24:39 +08:00
README.md feat(): add alpine mysql dockerfile 2018-03-30 15:24:39 +08:00
startup.sh feat(): add alpine mysql dockerfile 2018-03-30 15:24:39 +08:00

alpine-mysql

a docker image base on alpine with mysql

build image

docker build -t ehlxr/alpine-mysql .
docker run -it --rm -v $(pwd):/app -p 3306:3306 ehlxr/alpine-mysql

Usage

docker run -it --name mysql -p 3306:3306 -v $(pwd):/app -e MYSQL_DATABASE=admin -e MYSQL_USER=tony -e MYSQL_PASSWORD=dpa\*12d -e MYSQL_ROOT_PASSWORD=111111 ehlxr/alpine-mysql

It will create a new db, and set mysql root password(default is 111111)