First time with Docker

I have heard docker for long time. Today I listen presentation, then try to setup docker in OS X environment. Here's the step of installation.

  1. Download Boot2Docker, then install pkg
  2. Open Boot2Docker in Application
    mkdir -p ~/.boot2docker
    if [ ! -f ~/.boot2docker/boot2docker.iso ]; then cp /usr/local/share/boot2docker/boot2docker.iso ~/.boot2docker/ ; fi
    /usr/local/bin/boot2docker init 
    /usr/local/bin/boot2docker up 
    $(/usr/local/bin/boot2docker shellinit)
    docker version
    Last login: Thu Mar  5 19:08:10 on console
    MacBook-Pro:~ joezine$ bash
    bash-3.2$ unset DYLD_LIBRARY_PATH ; unset LD_LIBRARY_PATH
    bash-3.2$ mkdir -p ~/.boot2docker
    bash-3.2$ if [ ! -f ~/.boot2docker/boot2docker.iso ]; then cp /usr/local/share/boot2docker/boot2docker.iso ~/.boot2docker/ ; fi
    bash-3.2$ /usr/local/bin/boot2docker init 
    Generating public/private rsa key pair.
    Your identification has been saved in /Users/joezine/.ssh/id_boot2docker.
    Your public key has been saved in /Users/joezine/.ssh/
    The key fingerprint is:
    55:2d:82:f3:01:e6:25:71:5b:1f:91:75:95:36:57:bb [email protected]
    The key's randomart image is:
    +--[ RSA 2048]----+
    |        =+o o.o+O|
    |       oo+o+..o=+|
    |        .ooo .o.o|
    |         ..     .|
    |        S      E |
    |                 |
    |                 |
    |                 |
    |                 |
    /usr/local/bin/boot2docker up 
    $(/usr/local/bin/boot2docker shellinit)
    docker version
    bash-3.2$ /usr/local/bin/boot2docker up 
    Waiting for VM and Docker daemon to start...
    Writing /Users/joezine/.boot2docker/certs/boot2docker-vm/ca.pem
    Writing /Users/joezine/.boot2docker/certs/boot2docker-vm/cert.pem
    Writing /Users/joezine/.boot2docker/certs/boot2docker-vm/key.pem
    To connect the Docker client to the Docker daemon, please set:
        export DOCKER_HOST=tcp://
        export DOCKER_CERT_PATH=/Users/joezine/.boot2docker/certs/boot2docker-vm
        export DOCKER_TLS_VERIFY=1
    bash-3.2$ $(/usr/local/bin/boot2docker shellinit)
    Writing /Users/joezine/.boot2docker/certs/boot2docker-vm/ca.pem
    Writing /Users/joezine/.boot2docker/certs/boot2docker-vm/cert.pem
    Writing /Users/joezine/.boot2docker/certs/boot2docker-vm/key.pem
    bash-3.2$ docker version
    Client version: 1.5.0
    Client API version: 1.17
    Go version (client): go1.4.1
    Git commit (client): a8a31ef
    OS/Arch (client): darwin/amd64
    Server version: 1.5.0
    Server API version: 1.17
    Go version (server): go1.4.1
    Git commit (server): a8a31ef
  3. You may download image from Docker's repository by using this command
     docker pull centos:7
  4. Try to run "docker run hello-world"
    bash-3.2$ docker run hello-world
    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.
        (Assuming it was not already locally available.)
     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
    For more examples and ideas, visit:

I just know that Docker built in GO