nginx
-
도커(Docker) Nginx 컨테이너를 이용하여 웹페이지 실행하기Azure 2022. 11. 23. 21:38
Nginx 도커 이미지를 이용하면 쉽게 웹서버를 구성할 수 있다. Nginx를 이용하면 로컬에서 Host 인 내 컴퓨터를 Nginx 웹서버의 루트 디렉토리로 지정하여 웹페이지를 로컬에서 실행해 볼수 있다. 도커 허브(Docker Hub) 에 접속하기 https://hub.docker.com/ 도커 허브 검색창에서 nginx 를 검색하면 위이 그림처럼 Nginx Official 도커 이미지가 조회 된다. docker pull nginx 위의 명령어를 커맨드 창에서 실행하면, Nginx 도커 이미지가 로컬에 다운로드 된다. Nginx 컨테이너 실행하기 도커 이미지를 다운로드 받으면, 아래 처럼 로컬에 있는 이미지를 확인할 수 있다. Nginx 도커를 Run 하면 아래와 같은 실행을 위한 설정 창이 뜨게 된다..