安装环境所需的依赖包
yum install -y yum-utils device-mapper-persistent-data lvm2
安装docker ce
yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
yum makecache fast &&yum -y install docker-ce
启动docker查看状态
systemctl start docker
systemctl start docker
查看docker版本号
docker -v