首先通过 uname -a命令确定内核版本在3.8之上
yum install -y yum-utils device-mapper-persistent-data lvm2
yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
yum install docker-ce
systemctl start docker
systemctl enable docker
(测试)docker run hello-world
配置阿里云镜像
