Docker deploy nginx front-end project

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 front docker.io/nginx # colon are mapped to the actual path of the physical machine docker virtual path configuration item Note that the path to the configuration file path nginx a virtual path

 

Guess you like

Origin www.cnblogs.com/musen/p/12061501.html