yum install -y yum-utils device-mapper-persistent-data lvm2
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo yum makecache
1、containerd.io过低
package docker-ce-3:20.10.7-3.el8.x86_64 requires containerd.io >= 1.4.1, but none of the providers can be installed
解决方式:
主动安装高版本的containerd.io
去这找最新版:https://download.docker.com/linux
containerd.io具体地址:https://download.docker.com/linux/centos/8/x86_64/stable/Packages/
dnf install https://download.docker.com/linux/centos/7/x86_64/stable/Packages/containerd.io-1.4.6-3.1.el7.x86_64.rpm
2、CentOS 8 中安装 Docker 出现和 Podman 冲突的问题
package podman-3.1.0-0.13.module_el8.5.0+733+9bb5dffa.x86_64 requires runc >= 1.0.0-57, but none of the providers can be installed
解决方式:
yum erase podman buildah
yum install docker-ce docker-ce-cli containerd.io