一、环境
1.本次是在centOS6.5上安装docker
2.centos6.5的内核是
3.首先安装epel epel-release-6-8.noarch.rpm 添加yum的源 地址:http://dl.Fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
二、安装
[[email protected] ~]# rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
[[email protected] ~]# yum -y install docker-io
三、启动
[[email protected] ~]# service docker start
Starting cgconfig service: [确定]
Starting docker: [确定]
[[email protected] ~]# chkconfig docker on
四、问题
CentOS 6安装docker 报docker dead but pid file exists 原因是device-mapper-libs的版本过低。
更新device-mapper-libs
$ yum update -y device-mapper-libs
启动正常。