본문 바로가기
IT/Docker

Docker Container tutorial (도커 컨테이너 매뉴얼) 2.명령어 (image)

by halizy 2018. 7. 10.

이번 포스팅은 기본적으로 docker 운영에 있어서 사용되는 명령어에 대해 다뤄보았습니다. 

문의 사항은 댓글로 남겨주시면 성심성의껏 답변드리도록 하겠습니다. 






Docker command (image)

 

이미지 검색 (Search)

 

# Docker Hub (https://registry.hub.docker.com)에 있는 이미지를 검색 할 수 있다.

 

$ docker search ubuntu

 

  NAME DESCRIPTION STARS OFFICIAL AUTOMATED

 

  ubuntu Ubuntu is a Debian-based Linux operating s 284 [OK] 

 

  ubuntu-upstart Upstart is an event-based replacement for 33 [OK]

 

  torusware/speedus-ubuntu  Always updated official Ubuntu docker imag... 25 [OK]

 

  tleyden5iwx/ubuntu-cuda Ubuntu 14.04 with CUDA drivers pre-installed 18 [OK]

 

  ubuntu-debootstrap  debootstrap --variant=minbase --components... 13 [OK] 

 

  neurodebian NeuroDebian provides neuroscience research...   11 [OK]

 

  rastasheep/ubuntu-sshd Dockerized SSH service, built on top of... 10 [OK]

 

  ...

 

# 공식이미지는 사용자명이 없고 아닌경우는 "/" 로 나누어 사용자 명이 붙음



로컬 저장소로 이미지 다운로드

 

# docker hub의 이미지를 로컬 docker에 다운로드 받기

 

docker images  //로컬 docker 내의 이미지 확인

 

REPOSITORY          TAG                 IMAGE ID            CREATED             VIRTUAL SIZE



docker pull ubuntu:latest // hub에서 우분투 최신버전 다운로드

 

latest: Pulling from library/ubuntu



d3a1f33e8a5a: Pull complete



c22013c84729: Pull complete



d74508fb6632: Pull complete



91e54dfb1179: Pull complete

library/ubuntu:latest: The image you are pulling has been verified. Important: image verification is a tech preview feature and should not be relied on to provide security.



Digest: sha256:73fbe2308f5f5cb6e343425831b8ab44f10bbd77070ecdfbe4081daa4dbe3ed1



Status: Downloaded newer image for ubuntu:latest //다운로드 완료 확인



docker pull ubuntu:12.04 // hub에서 우분투 12.04 버전 다운로드

 

12.04: Pulling from library/ubuntu



ba2b457ecfb2: Pull complete



26180b0fe8fb: Pull complete



edd7c1974a70: Pull complete



57bca5139a13: Pull complete



library/ubuntu:12.04: The image you are pulling has been verified. Important: image verification is a tech preview feature and should not be 

relied on to provide security.

 

Digest: sha256:b6055621e534009eb9cddbfbb5766a983d99a73fb9d170cc224209a628f91804



Status: Downloaded newer image for ubuntu:14.04 //다운로드 완료 확인







docker images  //로컬 docker 내의 이미지 확인

 

REPOSITORY          TAG                 IMAGE ID            CREATED             VIRTUAL SIZE



    ubuntu              latest               91e54dfb1179        4 weeks ago           188.4 MB


    ubuntu              12.04               57bca5139a13        4 weeks ago           134.8 MB 

 

 


댓글