sudo systemctl start docker sudo systemctl enable docker docker pull nginx mkdir -p /etc/nginx/logs docker run -d --name nginx1 -p 80:80 nginx docker cp nginx1:/etc/nginx/nginx.conf /etc/nginx docker cp nginx1:/etc/nginx/conf.d /etc/nginx docker cp nginx1:/usr/share/nginx/html /etc/nginx docker rm -f nginx1 docker run --name nginxOuter -d -p 9005:80 -v /etc/nginx/conf.d:/etc/nginx/conf.d -v /etc/nginx/html:/etc/nginx/html -v /etc/nginx/nginx.conf:/etc/nginx/nginx.conf -v /etc/nginx/logs:/etc/nginx/logs nginx
|