nginx
1.8.x
+ php5-fpm5.6.x
+ mysql5.7.8-rc
+ phpmyadmin4.4.14.1
docker run --name mysql \
-e "MYSQL_ROOT_PASSWORD=123456" \
-e "MYSQL_USER=wangyan" \
-e "MYSQL_PASSWORD=123456" \
-d myidwy/docker-mysql
支持的环境变量:
- MYSQL_ROOT_PASSWORD
- MYSQL_DATABASE
- MYSQL_USER
- MYSQL_PASSWORD
- MYSQL_ALLOW_EMPTY_PASSWORD
更多信息:https://github.com/docker-library/docs/tree/master/mysql
docker logs -f mysql //查日志
docker exec -it mysql /bin/bash //进入容器
docker run --name phpMyAdmin \
--link wy-mysql:mysql \
-P -d myidwy/docker-phpmyadmin
docker run --link MySQL:MySQL myidwy/docker-phpmyadmin -uroot -p123456 status;
docker rm -f $(docker ps -a -q)
docker rmi -f myidwy/docker-phpmyadmin