docker-nginx

sudo docker run -di --name nginx-test -d -p 80:80 -v $PWD/mydocker/nginx/log:/var/log/nginx -v $PWD/mydocker/nginx/conf:/etc/nginx/conf.d -v $PWD/mydocker/nginx/nginx.conf:/etc/nginx/nginx/conf -v /mydocker/nginx/html:/lx/html nginx

 

sudo docker run -di --name nginx-test -d -p 80:80 -v $PWD/mydocker/nginx/log:/var/log/nginx -v $PWD/mydocker/nginx/conf:/etc/nginx/conf.d -v $PWD/mydocker/nginx/nginx.conf:/etc/nginx/nginx/conf -v /mydocker/nginx/html:/lx/html nginx

posted @ 2021-12-13 17:16  阿日斯兰  阅读(55)  评论(0编辑  收藏  举报