docker安装nginx
1.下载并启动nginx
docker run -p 80:80 --name nginx -v /mydata/nginx/html:/usr/share/nginx/html -v /mydata/nginx/logs:/var/log/nginx -v /mydata/nginx/conf:/etc/nginx -v /download:/download -d nginx:1.16
2.默认启动nginx
docker update nginx --restart=always
3.重启nginx
docker restart nginx