docker安装mysql

docker run --name mysql01 -p 3306:3306
-v /home/mysql/log:/var/log/mysql
-v /home/mysql/conf:/etc/mysql/conf.d
-v /home/mysql/data:/var/lib/mysql
-e MYSQL_ROOT_PASSWORD=lbf123
-d mysql:5.7

docker run -d --name nginx -p 80:80 -p 443:443 -v /home/nginx/conf:/etc/nginx -v /home/nginx/html:/usr/share/nginx/html nginx

你可能感兴趣的:(mysql,docker,数据库)