1、工具安装
yum install -y yum-utils device-mapper-persistent-data lvm2
2、安装阿里云仓库
yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
3、安装docker
yum install -y containerd.io-1.2.10 docker-ce-19.03.4 docker-ce-cli-19.03.4
4、启动docker
systemctl start docker
systemctl enable docker
5、安装阿里云镜像加速器
vi /etc/docker/daemon.json
{
"registry-mirrors": ["https://zydiol88.mirror.aliyuncs.com"]
}
6、重启docker
systemctl restart docker