Skip to Content
Suffering builds character
아카이브25.devopsDocker특징1.컨테이너 관리1.Docker 컨테이너 생성 및 실행하기

1.Docker 컨테이너 생성 및 실행하기

도커 컨테이너를 생성하고 실행하기 위해서는,
먼저 컨테이너를 생성하는 기반이 되는 컨테이너 이미지가 필요함

1-1.실습용 Docker 이미지  받아오기

docker pull 명령어를 통해 다른 사람이 만들어둔 도커 이미지를 받아올 수 있음

terminal
docker pull hello-world

도커 이미지에 대해서는 뒤에서 설명

실행 결과

terminal
Using default tag: latest latest: Pulling from library/hello-world c1ec31eb5944: Pull complete Digest: sha256:d000bc569937abbe195e20322a0bde6b2922d805332fd6d8a68b19f524b7d21d Status: Downloaded newer image for hello-world:latest docker.io/library/hello-world:latest

1-2. 현재 가지고 있는 docker image 목록 확인

docker images 명령어를 통해 현재 다운받은 이미지 목록 조회

terminal
docker images

실행 결과

terminal
REPOSITORY TAG IMAGE ID CREATED SIZE hello-world latest d2c94e258dcb 10 months ago 13.3kB
Last updated on