天天看點

Error: docker-ce conflicts with 2:docker-1.13.1-53.git774336d.el7.centos.x86_64

環境: Centos 7  Docker版本:docker-ce.x86_64 0:18.03.0.ce-1.el7.centos

運作指令:yum install -y kubernetes

錯誤:Error: docker-ce conflicts with 2:docker-1.13.1-53.git774336d.el7.centos.x86_64

錯誤原因:(https://stackoverflow.com/questions/44891775/kubernetes-installation-on-centos7)

According to the documentation, Kubernetes is not yet compatible with docker-ce (docker >=17.x)

On each of your machines, install Docker. Version 1.12 is recommended, but v1.10 and v1.11 are known to work as well. Versions 1.13 and 17.03+ have not yet been tested and verified by the Kubernetes node team.

解決方法:解除安裝docker-ce

1、檢視安裝過的docker:yum list installed | grep docker

2、解除安裝docker:yum remove -y docker-ce.x86_64 0:18.03.0.ce-1.el7.centos

3、删除容器鏡像:rm -rf /var/lib/docker

再次安裝kubernetes,安裝成功,而且會自動安裝docker

繼續閱讀