给有一定基础的同学参考
docker pull nginx
docker run -d -p 8080:8080 -v `pwd`/dist/:/usr/share/nginx/html/ --name nginx-app --restart always nginx
docker cp default.conf nginx-app:/etc/nginx/conf.d/
docker restart nginx-app
给有一定基础的同学参考
docker pull nginx
docker run -d -p 8080:8080 -v `pwd`/dist/:/usr/share/nginx/html/ --name nginx-app --restart always nginx
docker cp default.conf nginx-app:/etc/nginx/conf.d/
docker restart nginx-app