Nginx 공식 사이트

nginx - Docker Hub

환경설정


도커를 이용해서 nginx 컨테이너 만들기


https://s3-us-west-2.amazonaws.com/secure.notion-static.com/f038872e-1761-4490-b448-321cb23e358d/Untitled.png

(base) glory@Gloryui-MacBookPro nginx % docker run -d --rm \\
  -p 50000:80 \\
  -v $(pwd)/index.html:/usr/share/nginx/html/index.html \\
  nginx
docker run -d --rm \\
  -p 50000:80 \\
  -v $(pwd)/index.html:/usr/share/nginx/html/index.html \\
  nginx
(base) glory@Gloryui-MacBookPro nginx % docker -d --rm \\
  -p 50000:80 \\
  -v $(pwd)/index.html:/usr/share/nginx/html/index.html \\
  nginx
Unable to find image 'nginx:latest' locally
latest: Pulling from library/nginx
45b42c59be33: Pull complete 
d0d9e9ea897e: Pull complete 
66e650438339: Pull complete 
76a3dfe4406b: Pull complete 
410ff9d97480: Pull complete 
Digest: sha256:8e10956422503824ebb599f37c26a90fe70541942687f70bbdb744530fc9eba4
Status: Downloaded newer image for nginx:latest
a167afc8c84a8f090add9d44d6e40d56896e7dadcc112f178236410d35b39b7c
(base) glory@Gloryui-MacBookPro nginx %