본문 바로가기

TEAM STUDY/쿠버네티스

[도커 실습] nginx 컨테이너 실행

728x90
반응형

🌝  nginx 컨테이너 실행

 

docker run --name nginx000ex6 -d -p 8084:80 nginx

 

soobin@DESKTOP-6SJCDN6:/mnt/c/WINDOWS/system32$ docker run --name nginx000ex6 -d -p 8084:80 nginx
Unable to find image 'nginx:latest' locally
latest: Pulling from library/nginx
42c077c10790: Already exists
62c70f376f6a: Pull complete
915cc9bd79c2: Pull complete
75a963e94de0: Pull complete
7b1fab684d70: Pull complete
db24d06d5af4: Pull complete
Digest: sha256:2bcabc23b45489fb0885d69a06ba1d648aeda973fae7bb981bafbb884165e514
Status: Downloaded newer image for nginx:latest
5fa2996dd8afcef3cb0692d5d002b60936e1e6f3bc3180bb2a7cf379e23629b2

 


🌝  컨테이너 상태 확인

docker ps

soobin@DESKTOP-6SJCDN6:/mnt/c/WINDOWS/system32$ docker ps
CONTAINER ID   IMAGE     COMMAND                  CREATED         STATUS         PORTS                  NAMES
5fa2996dd8af   nginx     "/docker-entrypoint.…"   2 minutes ago   Up 2 minutes   0.0.0.0:8084->80/tcp   nginx000ex6

 


🌝  웹 브라우저에서 nginx 서버에 접근 할 수 있는지 확인

 


🌝  컨테이너 정지 

docker stop nginx000ex6 

 


🌝  컨테이너 삭제

docker rm nginx000ex6 

 


728x90
반응형