Docker커맨드 설명(2)

[Docker]Docker커맨드 설명(2) - search와 pull


주의 사항

  1. 도커 커맨드는 기본적으로 root권한으로 실행하여야 한다.
  2. 지난 포스팅을 진행하였다는 것을 전제로 함

docker search

  • 도커 이미지를 검색하는 커맨드

$ sudo docker search ubuntu

NAME                              DESCRIPTION                                     STARS     OFFICIAL   AUTOMATED
ubuntu                            Ubuntu is a Debian-based Linux operating s...   3215      [OK]
ubuntu-upstart                    Upstart is an event-based replacement for ...   60        [OK]
torusware/speedus-ubuntu          Always updated official Ubuntu docker imag...   25                   [OK]
ubuntu-debootstrap                debootstrap --variant=minbase --components...   25        [OK]
tleyden5iwx/ubuntu-cuda           Ubuntu 14.04 with CUDA drivers pre-installed    20                   [OK]
rastasheep/ubuntu-sshd            Dockerized SSH service, built on top of of...   20                   [OK]
consol/ubuntu-xfce-vnc            Ubuntu container with "headless" VNC sessi...   8                    [OK]
nuagebec/ubuntu                   Simple always updated Ubuntu docker images...   4                    [OK]
nickistre/ubuntu-lamp-wordpress   LAMP on Ubuntu with wp-cli installed            4                    [OK]
nimmis/ubuntu                     This is a docker images different LTS vers...   3                    [OK]
maxexcloo/ubuntu                  Docker base image built on Ubuntu with Sup...   2                    [OK]
densuke/ubuntu-jp-remix           Ubuntu Linuxの日本語remix風味です                       2                    [OK]
nickistre/ubuntu-lamp             LAMP server on Ubuntu                           2                    [OK]
isuper/base-ubuntu                This is just a small and clean base Ubuntu...   1                    [OK]
seetheprogress/ubuntu             Ubuntu image provided by seetheprogress us...   1                    [OK]
rallias/ubuntu                    Ubuntu with the needful                         0                    [OK]
webhippie/ubuntu                  Docker images for ubuntu                        0                    [OK]
teamrock/ubuntu                   TeamRock's Ubuntu image configured with AW...   0                    [OK]
zoni/ubuntu                                                                       0                    [OK]
ubuntucore/jenkins-ubuntu         Jenkins image based on ubuntu                   0                    [OK]
jianhuiz/ubuntu-docker            ubuntu images that runs in nova-docker          0                    [OK]
esycat/ubuntu                     Ubuntu LTS                                      0                    [OK]
konstruktoid/ubuntu               Ubuntu base image                               0                    [OK]
mrbobbytables/ubuntu-base         Ubuntu 14.04 base container packaged with ...   0                    [OK]
lynxtp/ubuntu                     https://github.com/lynxtp/docker-ubuntu         0                    [OK]
  • 결과가 많은데 어떤걸 받아야 하지?
    • 위와 같이 많은 이미지가 검색이 되는데 [xxx]/ubuntu와 같은 이름의 이미지는 docker사용자가 커스텀하여 배포하는 이미지이다.
    • 순정 이미지는 OFFICIAL항목에 [OK]되어 있는 것과 STARS에 숫자가 높은 것일 확률이 높다.
    • 포스팅에서는 순정을 사용하였기 때문에 이번에도 순정을 받을 예정이다.

docker pull

  • 도커 이미지를 다운로드 하는 명령어

$ sudo docker pull ubuntu

Using default tag: latest
latest: Pulling from library/ubuntu
e3c70beaa378: Pull complete
2e0188208e83: Pull complete
8ea5373bf5a6: Pull complete
36248ae4a9ac: Pull complete
Digest: sha256:d8b3a9876f7b00798144e75ac6c7f98ab10772867c76dd05f3dbd8687588ab6d
Status: Downloaded newer image for ubuntu:latest
  • 도커 이미지를 다운로드 할 때 이미지의 버전을 지정?
    • 이미지를 다운로드 할 때 버전을 지정할 수 있지만 생략하면 기본값으로 latest가 붙어 최신 버전을 다운로드 한다.

sudo docker run까지 포스팅을 할 예정이였으나 run부분에서 설명할 내용이 많아 다음 포스팅에서 여러가지 예제를 들어 설명할 예정이다.

댓글