本文纯属个人笔记,没有具体的参考价值:

1.查看docker中有哪些镜像:docker ps

2.要想删除docker中的nginx文件,需要先关闭nginx:

1)docker stop nginx

2) docker rm nginx

3.在docker中重新安装nginx配置:

docker run --name nginx \

-v /home/TECS/front/config/nginx.conf:/etc/nginx/nginx.conf:ro \

-v /home/TECS/front/projects/dist:/home/TECS/front/projects/dist \

-v /home/TECS/front/projects/distAdmin:/home/TECS/front/projects/distAdmin \

-v /home/TECS/front/projects/distRedirect:/home/TECS/front/projects/distRedirect \

--restart=always \

-p 80:80 -p 9000:9000 -d nginx:1.13

Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐