安装docker
docker pull nginx //拉取nginx镜像
docker cp -a nginx:/etc/nginx /usr/local //把容器里面的etc下面nginx复制到外面的/usr/local下
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 //启动容器