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

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

Error: docker-ce-cli conflicts with 2:docker-1.13.1-103.git7f2769b.el7.centos.x86_64
Error: docker-ce conflicts with 2:docker-1.13.1-103.git7f2769b.el7.centos.x86_64

后面百度查了查,原因是因为之前安装过docker,版本冲突原因,解决方法如下:

查询安装docker列表

yum list installed | grep docker

file

卸载

yum -y remove containerd.io.x86_64 docker-ce.x86_64 docker-ce-cli.x86_64

再次安装,成功

分享学习是一件开心事