容器启动失败查看日志
docker logs 4dfg3df0g3300
mysql
docker run -d -p 3306:3306 --privileged=true -v /export/server/docker/mysql/log:/var/log/mysql -v /export/server/docker/mysql/data:/var/lib/mysql -v /export/server/docker/mysql/conf:/etc/mysql/conf.d -e MYSQL_ROOT_PASSWORD=root--name mysql mysql:latest
sudo docker run -p 3307:3306 --name mysql -v /Users/qianye/Documents/docker/mysql/data:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=123456 -d mysql:latest
标签:部署,var,export,mysql,3306,--,docker From: https://www.cnblogs.com/itqinls/p/17606975.html