CentOS 7(Linux)安装docker,执行yum install docker-io -y报错
Posted on 2022-07-04 17:24 Qtoken 阅读(652) 评论(0) 编辑 收藏 举报CentOS 7(Linux)安装Docker,执行yum install docker-io -y报错
一、执行yum install docker-io -y报错
Error: docker-ce conflicts with 2:docker-1.13.1-209.git7d71120.el7.centos.x86_64
Error: docker-ce-cli conflicts with 2:docker-1.13.1-209.git7d71120.el7.centos.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
原因:CentOS 7原有的docker-ce、docker-ce-cli与当前安装的Docker版本冲突
二、尝试删除冲突包
分别执行如下命令删除冲突包:
sudo yum -y remove docker-ce
sudo yum -y remove docker-ce-cli
删除冲突包后,执行yum install docker-io -y命令,提示Complete!