CentOS6.5安装docker1.7.1

■■在线安装

■yum list epel*
Installing:
epel-release noarch 6-8 extras 14 k

■yum install docker-io
Downloading Packages:
(1/7): docker-io-1.7.1-2.el6.x86_64.rpm | 4.6 MB 00:16
(2/7): libcgroup-0.40.rc1-24.el6_9.x86_64.rpm | 131 kB 00:00
(3/7): lua-alt-getopt-0.7.0-1.el6.noarch.rpm | 6.9 kB 00:00
(4/7): lua-filesystem-1.4.2-1.el6.x86_64.rpm | 24 kB 00:00
(5/7): lua-lxc-1.0.11-1.el6.x86_64.rpm | 16 kB 00:00
(6/7): lxc-1.0.11-1.el6.x86_64.rpm | 124 kB 00:00
(7/7): lxc-libs-1.0.11-1.el6.x86_64.rpm | 257 kB 00:00
------------------------------------------------------------------------------------------------------
Total 228 kB/s | 5.1 MB 00:23

■service docker start
service docker sratus
docker dead but pid file exists
是因为device-mapper-libs的版本过低
执行
$ yum update -y device-mapper-libs

[root@vm1:~]service docker start
[root@vm1:~]service docker status
[root@vm1:~]docker version
Client version: 1.7.1

■验证docker安装成功
[root@vm1:~]docker run hello-world
Hello from Docker!
This message shows that your installation appears to be working correctly.

■■离线安装

顺序安装如下包
rpm -ivh lxc-libs-1.0.9-1.el6.x86_64.rpm
rpm -ivh lua-alt-getopt-0.7.0-1.el6.noarch.rpm
rpm -ivh lua-filesystem-1.4.2-1.el6.x86_64.rpm
rpm -ivh lua-lxc-1.0.9-1.el6.x86_64.rpm
rpm -ivh lxc-1.0.9-1.el6.x86_64.rpm
rpm -ivh docker-io-1.7.1-2.el6.x86_64.rpm

rpm -ivh device-mapper-libs-1.02.117-12.el6.i686.rpm --force --nodeps
rpm -ivh device-mapper-libs-1.02.117-12.el6.x86_64.rpm --force --nodeps

[root@datanode15 device-mapper-libs]# service docker start

[root@datanode15 device-mapper-libs]# service docker status

[root@datanode15 device-mapper-libs]# docker version
Client version: 1.7.1

rpm包:

链接:https://pan.baidu.com/s/10VuNxaQGJPBWUjyD_KT4KQ 密码:29ct

标签:

《CentOS6.5安装docker1.7.1》有2个想法

发表评论

电子邮件地址不会被公开。 必填项已用*标注