CentOS8安装Docker出现 package docker-ce-3:19.03.12-3.el7.x86_64 requires containerd.io >= 1.2.2-3

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

安装Docker

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 
//启动docker
systemctl start docker
//添加开机启动
systemctl enable docker

你可能感兴趣的:(linux,centos,docker)