关于centos8安装docker失败的解决方案

fghwett 2019年11月09日 •  经验分享 110 •  0

今天突然想玩玩docker,于是去下载centos7。突然发现官网已经有了8,于是下来常常鲜。但是在安装是却出错了,说是缺少组件。

错误:
 问题: package docker-ce-3:19.03.3-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.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. 下载docker-ce的repo

    curl https://download.docker.com/linux/centos/docke-ce.repo -o /etc/yum.repos.d/docker-ce.repo
  2. 安装依赖(这是相比centos7的关键步骤)

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

    yum install docker-ce
  4. 启动docker

    systemctl start docker

到此,docker仅是安装成功,其他功能有待测试。

参考地址:https://www.cnblogs.com/ding2016/p/11592999.html
Tags:none
上一篇
打赏
下一篇

添加新评论