k8s安装报错Error: docker-ce-cli conflicts with 2:docker-1.13.1-103.git7f2769b.el7.centos.x86_64

yum -y install kubernetes

报错

Error: docker-ce-cli conflicts with 2:docker-1.13.1-109.gitcccb291.el7.centos.x86_64
Error: docker-ce conflicts with 2:docker-1.13.1-109.gitcccb291.el7.centos.x86_64
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

原因是因为之前安装过docker,版本冲突原因,解决方法如下:

查询安装docker列表

[root@901-21 ~]# yum list installed | grep docker
containerd.io.x86_64                  1.2.13-3.1.el7                  @docker-ce-stable
docker-ce.x86_64                      3:19.03.8-3.el7                 @docker-ce-stable
docker-ce-cli.x86_64                  1:19.03.7-3.el7                 @docker-ce-stable

卸载
[root@901-22 ~]# yum -y remove containerd.io.x86_64 docker-ce.x86_64 docker-ce-cli.x86_64

重新安装

posted @ 2020-03-16 09:42  liulj0713  阅读(2685)  评论(0编辑  收藏  举报