美文网首页出错解决
CentOS8安装Docker出现package docker-

CentOS8安装Docker出现package docker-

作者: MachinePlay | 来源:发表于2020-03-30 01:22 被阅读0次

    1.背景简介

    最近用上了VULTR机器,默认使用了CentOS8,正好尝尝鲜,尝试安装Docker时出现了错误,故及时记录一下,方面其他同学。

    2.错误提示

     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
    

    安装步骤:

    3.问题分析

    centos8默认使用podman代替docker,所以需要containerd.io,那我们就安装一下就好了

    4.解决方法

    安装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 
    systemctl start docker
    systemctl enable docker
    

    相关文章

      网友评论

        本文标题:CentOS8安装Docker出现package docker-

        本文链接:https://www.haomeiwen.com/subject/qfxmuhtx.html