安裝docker nginx
docker pull nginx //拉取nginx鏡像docker
docker cp -a nginx:/etc/nginx /usr/local //把容器裏面的etc下面nginx複製到外面的/usr/local下ide
docker run -p 8088:80 --name nginx88 -v /www:/www -v /usr/local/nginx:/etc/nginx -v /usr/local/nginx/logs:/var/log/nginx -v /usr/local/nginx/wwwlogs:/wwwlogs -d nginx //啓動容器it