yum -y install yum-utils device-mapper-persistent-data lvm2
yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
yum makacache fast yum -y install docker-ce
#启动Docker服务 systemctl start docker #设置开机自动启动 systemctl enable docker