一、安装与配置

1.安装依赖包

sudo yum install -y yum-utils device-mapper-persistent-data lvm2

2.设置阿里云镜像源

sudo yum-config-manager --add-repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo 

3.安装 Docker

sudo yum install docker-ce docker-ce-cli containerd.io

4.启动docker

sudo systemctl start docker

5.镜像加速配置

Q.E.D.