욱'S 노트

Docker - 설치 본문

Programming/Docker

Docker - 설치

devsun 2015. 4. 29. 16:46



Docker Toolbox를 이용해서 Docker를 인스톨 할 수 있다. Docker Toolbox는 다음과 같은 도커툴들을 포함하고 있다.


  • Docker Machine for running the docker-machine binary
  • Docker Engine for running the docker binary
  • Docker Compose for running the docker-compose binary
  • Kitematic, the Docker GUI
  • a shell preconfigured for a Docker command-line environment
  • Oracle VM VirtualBox


도커 데몬은 리눅스 커널 기반이기 때문에 OS X에서는 네이티브하고 도커를 실행할 수 없다. 그러므로 도커 머신을 이용해 도커 VM을 생성해야 한다. 이 VM은 당신의 Mac상세어 호스트될 것이다.


Step 1: Check your version


도커를 실행하기 위해서 OS X 10.8 "Mountain Lion" 또는 그 이상이어야 한다. 


Step 2: Install Docker Toolbox


Docker ToolBox로 가서 다운로드를 받자.



다운로드 링크를 클릭해서 다운로드를 수행하자.


설치를 위해 도커 툴박스 패키지를 클릭하면 다음과 같은 다이얼로그가 나타날 것이다.





설치는 계속을 누르다보면 아래와 같이 성공적으로 설치가 되었다는 메시지를 확인할 수 있을 것이다.



기본적으로 docker-toolbox는 usr/local/bin 하위에 설치가 된다.


Step 3: Verify your installation


도커 컨테이너를 실행하기 위해 


새로운 도커 버츄얼 머신을 만들어야 하고

당신의 환경을 새로운 VM으로 전환해야 하며

컨테이너를 생성하고, 로드하고 관리하기 위해 도커 클라이언트를 사용해야 한다.

한번 머신을 생성하며 재사용할 수 있다.


1. 런치패드를 열고 도커 Quickstart 터미널 아이콘을 선택하자.



2. 터미널은 당신을 위해 도커 퀵스타트 터미널을 세팅하기 위해 여러가지 일을 수행할 것이다.



3. 터미널에서 docker run hello-world 커맨드를 실행해보자.


커맨드는 다음과 같이 여러가지 일을 수행할 것이다. 정상적으로 다음과 같은 메시지가 출력되었다면 정상적으로 설치가 된 것이다.


Unable to find image 'hello-world:latest' locally

latest: Pulling from library/hello-world


535020c3e8ad: Pull complete

af340544ed62: Pull complete

Digest: sha256:a68868bfe696c00866942e8f5ca39e3e31b79c1e50feaee4ce5e28df2f051d5c

Status: Downloaded newer image for hello-world:latest


Hello from Docker.

This message shows that your installation appears to be working correctly.


To generate this message, Docker took the following steps:

 1. The Docker client contacted the Docker daemon.

 2. The Docker daemon pulled the "hello-world" image from the Docker Hub.

 3. The Docker daemon created a new container from that image which runs the

    executable that produces the output you are currently reading.

 4. The Docker daemon streamed that output to the Docker client, which sent it

    to your terminal.


To try something more ambitious, you can run an Ubuntu container with:

 $ docker run -it ubuntu bash


Share images, automate workflows, and more with a free Docker Hub account:

 https://hub.docker.com


For more examples and ideas, visit:

 https://docs.docker.com/userguide/


'Programming > Docker' 카테고리의 다른 글

Docker - Build your own imag  (0) 2015.10.12
Docker - whalesay 이미지 찾아서 실행하기  (0) 2015.10.07
Docker - Images & Containers  (0) 2015.10.02
Docker - 개요  (0) 2015.04.29
Docker - 소개  (0) 2015.04.28
Comments