centos8安装docker报错requires containerd.io >= 1.2.2-3

报错如下:
Problem: package docker-ce-3:19.03.4-3.el7.x86_64 requires containerd.io >= 1.2.2-3 那就先装新版的 containerd.io
centos8安装docker报错requires containerd.io >= 1.2.2-3_第1张图片
原因:
centos8默认使用podman代替docker,所以需要containerd.io,那我们就安装一下就好了

解决方法:
安装containerd.io即可

yum install https://download.docker.com/linux/fedora/30/x86_64/stable/Packages/containerd.io-1.2.6-3.3.fc30.x86_64.rpm

继续安装

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 install -y docker-ce 
systemctl start docker
systemctl enable docker

你可能感兴趣的:(centos8安装docker报错requires containerd.io >= 1.2.2-3)