docker pull nginx 

docker run -itd -p 82:80 -v /opt/soft/nginx/conf/nginx.conf:/etc/nginx/nginx.conf -v /var/log/nginx/logs:/var/log/nginx -v /var/web/dist:/usr/share/nginx/html  -d docker.io/nginx

#冒号前面的是物理机实际路径映射到docker 虚拟路径  nginx 配置文件项目路径注意配置路径要为虚拟路径

 

改行去放羊