环境:Centos7.6.1810(已联网)
安装依赖: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:yum clean all
yum makecache
安装:yum -y install docker-ce
启动:systemctl enable docker //加入开机自启
systemctl start docker
查看版本信息:docker version
查看状态:systemctl status dorcker