centos8安装docker错误解决

本文介绍了在安装Docker CE过程中遇到的包冲突与依赖问题,包括buildah、containerd.io和runc之间的版本不匹配。提出了两种解决方案:一是检查并卸载Podman后再重新安装Docker;二是直接删除buildah和podman,然后安装Docker。这两种方法已被验证有效。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

安装出现 Problem: problem with installed package buildah…

Last metadata expiration check: 0:08:17 ago on Sat 20 Feb 2021 12:43:29 AM EST.
Error: 
 Problem: problem with installed package buildah-1.15.1-2.module_el8.3.0+475+c50ce30b.x86_64
  - package buildah-1.15.1-2.module_el8.3.0+475+c50ce30b.x86_64 requires runc >= 1.0.0-26, but none of the providers can be installed
  - package containerd.io-1.2.6-3.3.fc30.x86_64 conflicts with containerd provided by containerd.io-1.4.3-3.1.el8.x86_64
  - package containerd.io-1.4.3-3.1.el8.x86_64 conflicts with runc provided by containerd.io-1.2.6-3.3.fc30.x86_64
  - package containerd.io-1.4.3-3.1.el8.x86_64 conflicts with containerd provided by containerd.io-1.2.6-3.3.fc30.x86_64
  - cannot install both containerd.io-1.4.3-3.1.el8.x86_64 and containerd.io-1.2.6-3.3.fc30.x86_64
  - package containerd.io-1.4.3-3.1.el8.x86_64 conflicts with runc provided by runc-1.0.0-68.rc92.module_el8.3.0+475+c50ce30b.x86_64
  - package containerd.io-1.4.3-3.1.el8.x86_64 obsoletes runc provided by runc-1.0.0-68.rc92.module_el8.3.0+475+c50ce30b.x86_64
  - package docker-ce-3:20.10.3-3.el8.x86_64 requires containerd.io >= 1.4.1, but none of the providers can be installed
  - cannot install the best candidate for the job
  - package runc-1.0.0-56.rc5.dev.git2abd837.module_el8.3.0+569+1bada2e4.x86_64 is filtered out by modular filtering
  - package runc-1.0.0-64.rc10.module_el8.3.0+479+69e2ae26.x86_64 is filtered out by modular filtering
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

方法一

  1. 查看是否安装 Podman
[root@localhost yum.repos.d]# rpm -q podman
podman-2.0.5-5.module_el8.3.0+512+b3b58dca.x86_64
  1. 删除之后在重新yum install docker-ce下载
[root@localhost yum.repos.d]# dnf remove podman

方法二

yum erase podman buildah

然后一路y 完事在下载yum install docker-ce
本人亲测有效

评论 13
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值