卸载 podman、buildah
dnf remove podman
dnf remove buildah- 安装 docker 依赖
1) sudo yum install -y yum-utils device-mapper-persistent-data lvm2
2) sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
3) sudo yum install docker-ce docker-ce-cli containerd.io
4) dnf install https://download.docker.com/linux/centos/7/x86_64/stable/Packages/containerd.io-1.2.6-3.3.el7.x86_64.rpm
- 从 Yum 安装 docker 服务
sudo yum install docker-ce docker-ce-cli
sudo systemctl enable docker
启动 docker 服务sudo systemctl start docker
查看 docker 版本信息docker --version