使用如下命令搭建
docker pull nginx:1.9.9
mkdir -p /data/docker/nginx-1.9.9/conf.d
mkdir -p /data/docker/nginx-1.9.9/logs
docker cp nginx-1.9.9:/etc/nginx/conf.d/default.conf /data/docker/nginx-1.9.9/conf.d/
docker cp nginx-1.9.9:/etc/nginx/nginx.conf /data/docker/nginx-1.9.9/
docker run -d --name nginx-1.9.9 -p 80:80
-v /data/docker/nginx-1.9.9/nginx.conf:/etc/nginx/nginx.conf
-v /data/docker/nginx-1.9.9/conf.d:/etc/nginx/conf.d
-v /data/docker/nginx-1.9.9/logs:/var/log/nginx
-v /data/service/kunpeng/kunpeng-web/dist:/usr/share/nginx/html
nginx:1.9.9