Error: docker-ce-cli conflicts with 2:docker-1.13.1-209.git7d71120.el7.centos.x86_64

CentOS7中安装k8s:

yum install kubernetes

安装K8S出现如下错误提示:

Error: docker conflicts
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

解决办法:
系统中已经安装有docker-ce,卸载后可正常安装k8s

yum -y remove docker-ce
yum -y remove docker-ce-cli

你可能感兴趣的:(各种报错,linux,docker,docker,centos,容器)