安装 docker 依赖包
yum install -y yum-utils \
device-mapper-persistent-data \
lvm2
设置阿里云仓库
yum-config-manager \
--add-repo \
https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
安装 containerd.io
wget https://mirrors.aliyun.com/docker-ce/linux/centos/7/x86_64/stable/Packages/containerd.io-1.2.13-3.2.el7.x86_64.rpm
yum install ./containerd.io-1.2.13-3.2.el7.x86_64.rpm
安装 Docker
yum install docker-ce docker-ce-cli
启动、测试 Docker
systemctl start docker
docker run hello-world