拉取Nginx镜像
docker pull nginx:latest
运行启动Nginx docker 配置容器映射本地磁盘存储路径
docker run --name webnginx -d --restart=always -p 8080:80 -v /home/data/nginx/html:/usr/share/nginx/html -v /home/data/nginx/conf.d/default.conf:/etc/nginx/conf.d/default.conf -v /home/data/nginx/log:/var/log/nginx nginx
网友评论