docker生成nginx镜像
docker run -d -p 80:80\ -p 8088:8088 \ -v /home/xxx/xxx/xxx/conf/nginx.conf:/etc/nginx/nginx.conf \ -v /home/xxx/xxx/xxx/dist:/home/usc/dist \ --name nginx \ nginx:latest # -p 指定端口 -v 挂载目录 --name 指定容器的名称 nginx:latest指定镜像的版本 docker inspect naginx 可以查看容器基本信息 nginx.conf文件中设置的目录需要是容器中的目录!!
欺骗自己最简单,欺骗自己最困难。
安慰自己最简单,安慰自己最困难。