1、报错信息
Error: docker-ce conflicts with 2:docker-1.13.1-209.git7d71120.el7.centos.x86_64
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
2、报错原因:之前系统安装过docker,可能导致版本冲突
3、解决方法:卸载后重装
查询安装过的包
yum list installed | grep docker
删除安装的软件包
yum -y remove docker-ce-cli.x86_64
yum -y remove containerd.io.x86_64
删除镜像/容器等
rm -rf /var/lib/docker
rm -rf /var/run/docker
重新安装即可
yum -y install docker