ysangy avatar

Docker 명령어 익혀 보기

ysangy

Published: 27 Jan 2019 › Updated: 27 Jan 2019Docker  명령어 익혀 보기

Docker 명령어 익혀 보기

도커 허브에서 이미지 내려 받기 여기서는 ubuntu 최신 버전을 내려 받는다.
docker pull ubuntu:latest

내가 갖고 있는 이미지 출력하기
docker images

새로운 컨테이너 생성 하기 이름: ubuntu 이미지:ubuntu 바로 실행: /bin/bash
docker run -it --name awshello ubuntu /bin/bash

컨터이너 종료
exit

컨터이너에서 빠져 나오기(종료 아님)
control+P+Q

내가 갖고 있는 컨테이너 확인 (종료된 컨테이너도 출력)
docker ps -a

컨테이너 shello 로 들어 가기
docker attach awshello

컨테이너 다시 시작
docker start awshello

컨테이너 종료
docker stop awshello

Leave Docker 명령어 익혀 보기 to:

Written by

Read more #docker posts


Best Posts From ysangy

We have not curated any of ysangy's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.

More Posts From ysangy