Ubuntu 16.04下Docker安装MySQL5.7

docker pull mysql:5.7.30
docker run
--name mysql5.7.30
--restart always
-v /opt/mysql5.7:/etc/mysql
-v /opt/mysql5.7/logs:/var/logs
-v /opt/mysql5.7/data:/var/lib/mysql
-v /opt/mysql5.7/mysql-files:/var/lib/mysql-files
-v /etc/localtime:/etc/localtime
-e MYSQL_ROOT_PASSWORD=WXB201314dyj
-p 3306:3306
-d mysql:5.7.30

你可能感兴趣的:(Ubuntu 16.04下Docker安装MySQL5.7)