Create folders and files for the host to mount the html folder and host folder of nginx.

sudo docker cp webserver:/usr/share/nginx/html/ /var/www/nginx/html/

sudo docker run -i -t -d -p 80:80 --name webserver -v /var/www/nginx/html/:/usr/share/nginx/html/ nginx

Running webservice is as follows.





조회수 확인