window10配置部署docker虚拟环境LNMP

本地配置docker

docker run -itd --name=mysql-8 -p 3307:3306 -v D:/docker/mysql/data/mysql:/var/lib/mysql -v D:/docker/mysql/conf/mysql:/etc/mysql -e MYSQL_ROOT_PASSWORD=123456 mysql:latest

docker run -itd --name=php7.4.8-fpm -v D:/docker/php/conf/etc:/usr/local/etc -v D:/docker/nginx/html:/var/www/html --link mysql-8:php-mysql8 php:7.4.8-fpm

docker run -itd --name=nginx-php7.4.8-fpm -p 8088:80 -v D:/docker/nginx/conf/nginx:/etc/nginx -v D:/docker/nginx/logs:/var/log/nginx -v D:/docker/nginx/html:/usr/share/nginx/html --link php7.4.8-fpm:php748 nginx:latest

docker的根目录配置加速文件

daemon.json

你可能感兴趣的:(Docker,window10,docker,lnmp)