yumでdockerをインストールします。
[root@c6node218 ~]# cat /etc/redhat-release CentOS release 6.6 (Final) [root@c6node218 ~]# rpm -ivh http://ftp.jaist.ac.jp/pub/Linux/Fedora/epel/6/i386/epel-release-6-8.noarch.rpm (省略) [root@c6node218 ~]# yum -y remove docker (省略) パッケージ docker は利用できますが、インストールしませんでした。 削除と設定したパッケージはありません。 [root@c6node218 ~]# yum install docker-io (省略) インストール: docker-io.x86_64 0:1.5.0-1.el6 依存性関連をインストールしました: libcgroup.x86_64 0:0.40.rc1-15.el6_6 lua-alt-getopt.noarch 0:0.7.0-1.el6 lua-filesystem.x86_64 0:1.4.2-1.el6 lua-lxc.x86_64 0:1.0.7-1.el6 lxc.x86_64 0:1.0.7-1.el6 lxc-libs.x86_64 0:1.0.7-1.el6 完了しました! [root@c6node218 ~]#
バイナリを取得してDocker 1.6にします。
[root@c6node218 ~]# service docker status docker は停止しています [root@c6node218 ~]# [root@c6node218 ~]# cd /usr/bin/ [root@c6node218 bin]# [root@c6node218 bin]# ls -l docker -rwxr-xr-x 1 root root 12922967 2月 18 15:48 2015 docker [root@c6node218 bin]# mv docker docker.org [root@c6node218 bin]# wget https://get.docker.com/builds/Linux/x86_64/docker-latest -O docker (省略) [root@c6node218 bin]# ls -l docker -rw-r--r-- 1 root root 15443598 4月 17 04:19 2015 docker [root@c6node218 bin]# chmod 755 docker [root@c6node218 bin]# ls -l docker -rwxr-xr-x 1 root root 15443598 4月 17 04:19 2015 docker [root@c6node218 bin]# ./docker version Client version: 1.6.0 Client API version: 1.18 Go version (client): go1.4.2 Git commit (client): 4749651 OS/Arch (client): linux/amd64 FATA[0000] Get http:///var/run/docker.sock/v1.18/version: dial unix /var/run/docker.sock: no such file or directory. Are you trying to connect to a TLS-enabled daemon without TLS? [root@c6node218 bin]# service docker start Starting cgconfig service: [ OK ] Starting docker: [ OK ] [root@c6node218 bin]# ./docker version Client version: 1.6.0 Client API version: 1.18 Go version (client): go1.4.2 Git commit (client): 4749651 OS/Arch (client): linux/amd64 Server version: 1.6.0 Server API version: 1.18 Go version (server): go1.4.2 Git commit (server): 4749651 OS/Arch (server): linux/amd64 [root@c6node218 bin]#
動いてるってことかな。