docker安装报错:docker-ce conflicts with 2:docker-1.13.1-208.git7d71120.el7_9.x86_64

一、问题描述

安装docker的时候报错

运行:
yum -y install docker

报错:
...
---> Package python-syspurpose.x86_64 0:1.24.48-1.el7.centos will be installed
---> Package subscription-manager-rhsm.x86_64 0:1.24.48-1.el7.centos will be installed
--> Running transaction check
---> Package python-backports.x86_64 0:1.0-8.el7 will be installed
---> Package python-ipaddress.noarch 0:1.0.16-2.el7 will be installed
--> Processing Conflict: 3:docker-ce-20.10.8-3.el7.x86_64 conflicts docker
--> Processing Conflict: 3:docker-ce-20.10.8-3.el7.x86_64 conflicts docker-io
--> Processing Conflict: 1:docker-ce-cli-20.10.8-3.el7.x86_64 conflicts docker
--> Processing Conflict: 1:docker-ce-cli-20.10.8-3.el7.x86_64 conflicts docker-io
--> Finished Dependency Resolution
Error: docker-ce conflicts with 2:docker-1.13.1-208.git7d71120.el7_9.x86_64
Error: docker-ce-cli conflicts with 2:docker-1.13.1-208.git7d71120.el7_9.x86_64
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

二、问题原因

新安装的docker和系统中已经安装的docker-ce和docker-ce-cli版本有冲突,删除冲突包即可。

三、解决办法

解决问题办法:

sudo yum -y remove docker-ce
sudo yum -y remove docker-ce-cli
  • 6
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值