【Docker】【nginx】docker安装nginx并映射宿主机配置文件地址

docker run -d -p 80:80 -v /root/docker/docker-nginx/nginx.conf:/etc/nginx/nginx.conf -v /root/docker/docker-nginx/html:/usr/share/nginx/html -v /root/docker/docker-nginx/logs:/var/log/nginx --name nginx nginx

你可能感兴趣的:(nginx,docker,运维)