添加centos6 docker源地址
sudo vi /etc/yum.repos.d/docker-ce.repo
[dockerrepo]
name=Docker Repository
baseurl=https://yum.dockerproject.org/repo/main/centos/6/
enabled=1
gpgcheck=1
gpgkey=https://yum.dockerproject.org/gpg
清理缓存
yum clean all
yum makecache
yum install docker-engine
service docker start