docker|centos8 安装docker报错Error: Unable to find a match: docker

centos8 安装docker报错Error: Unable to find a match: docker centos8 安装docker报错Problem: package docker-ce-3:19.03.8-3.el7.x86_64 requires containerd.io >= 1.2.2-3, but none of the providers can be installed

Problem: package docker-ce-3:19.03.8-3.el7.x86_64 requires containerd.io >= 1.2.2-3, but none of the providers can be installed - cannot install the best candidate for the job - package containerd.io-1.2.10-3.2.el7.x86_64 is excluded - package containerd.io-1.2.13-3.1.el7.x86_64 is excluded - package containerd.io-1.2.2-3.3.el7.x86_64 is excluded - package containerd.io-1.2.2-3.el7.x86_64 is excluded - package containerd.io-1.2.4-3.1.el7.x86_64 is excluded - package containerd.io-1.2.5-3.1.el7.x86_64 is excluded - package containerd.io-1.2.6-3.3.el7.x86_64 is excluded

以上两个问题按照如下顺序都能解决。亲测!!
  1. 首先更新一下:yum -y update
  2. centos8默认使用podman代替docker,所以需要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

  1. 安装一些其他依赖
yum install -y yum-utils device-mapper-persistent-data lvm2 yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo

  1. 安装docker
yum install -y docker-ce

  1. 启动docker
systemctl start docker

  1. 使用docker命令
docker|centos8 安装docker报错Error: Unable to find a match: docker
文章图片

【docker|centos8 安装docker报错Error: Unable to find a match: docker】参考自:https://blog.csdn.net/qq_36643282/article/details/105190759

    推荐阅读