SoftLayerの仮想サーバーにDocker 1.5をインストールしてみた

2015/02/10にリリースされた[Docker 1.5](https://blog.docker.com/2015/02/docker-1-5-ipv6-support-read-only-containers-stats-named-dockerfiles-and-more/)をインストール

# 仮想サーバーの準備
SoftLayer上に準備した仮想サーバーをSLコマンドで確認します。

```
# sl vs detail 8128042
Ubuntu Trusty 14.04 (LTS) (64-bit):~ $ sl vs detail 8128256
:....................:...............................:
:               Name : Value                         :
:....................:...............................:
:                 id : 8128256                       :
:           hostname : *****************             :
:             status : Active                        :
: active_transaction : Service setup                 :
:              state : Running                       :
:         datacenter : tok02                         :
:                 os : Ubuntu                        :
:         os_version : 14.04-64 Minimal for VSI      :
:              cores : 1                             :
:             memory : 4G                            :
:          public_ip : *****************             :
:         private_ip : *****************             :
:       private_only : False                         :
:        private_cpu : False                         :
:            created : 2015-02-11T13:54:57+09:00     :
:           modified : 2015-02-11T13:58:06+09:00     :
:              owner : atsumori@jp.ibm.com           :
:              vlans : :.........:........:........: :
:                    : :   type  : number :   id   : :
:                    : :.........:........:........: :
:                    : :  PUBLIC :  766   : 732016 : :
:                    : : PRIVATE :  766   : 732018 : :
:                    : :.........:........:........: :
:....................:...............................:
```

# OSの確認
```
# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.1 LTS"
# arch
x86_64
```

# Docker 1.5のインストール

apt-get updateを実行します。

```
# sudo apt-get update
```

dockerバイナリーをダウンロードして実行権限を付与します。

```
# wget https://get.docker.com/builds/Linux/x86_64/docker-latest -O docker
# chmod +x docker
```

# dockerデーモンを起動
```
# sudo ./docker -d &
[1] 2440
# INFO[0000] +job serveapi(unix:///var/run/docker.sock)   
INFO[0000] Listening for HTTP on unix (/var/run/docker.sock) 
WARN[0000] WARNING: Udev sync is not supported. This will lead to unexpected behavior, data loss and errors 
INFO[0002] +job init_networkdriver()                    
INFO[0003] -job init_networkdriver() = OK (0)           
INFO[0003] WARNING: mountpoint for memory not found
    
INFO[0003] Loading containers: start.                   

INFO[0003] Loading containers: done.                    
INFO[0003] docker daemon: 1.5.0 a8a31ef; execdriver: native-0.2; graphdriver: devicemapper 
INFO[0003] +job acceptconnections()                     
INFO[0003] -job acceptconnections() = OK (0) 
```
# Dockerバージョンの確認
```
# sudo ./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): linux/amd64
INFO[0172] GET /v1.17/version                           
INFO[0172] +job version()                               
INFO[0172] -job version() = OK (0)                      
Server version: 1.5.0
Server API version: 1.17
Go version (server): go1.4.1
Git commit (server): a8a31ef
```

# 
```
sudo ./docker run -i -t ubuntu /bin/bash