使用命令:
yum install kubernetes
報錯:
Error: docker-ce-cli conflicts with 2:docker-1.13.1-91.git07f3374.el7.centos.x86_64 You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest
錯誤原因:
yum安裝kubernetes之前已經安裝過docker,導致出現上面報錯
解決方法:
先卸載docker,再重新安裝kubernetes,即可解決這個問題
yum list installed | grep docker
將三個查出來的全部卸載
yum -y remove containerd.io.x86_64 docker-ce.x86_64 docker-ce-cli.x86_64
卸載完成,再重新執行
yum install kubernetes