问题
- 之前已经安装过旧版本的docker,在安装的时候报错如下:
Transaction check error:
file /usr/bin/docker from install of docker-ce-cli-1:18.09.8-3.el7.x86_64 conflicts with file from package docker-common-2:1.13.1-96.gitb2f74b2.el7.centos.x86_64
Error Summary
- 卸载旧版本的包
[root@centos7 ~]# yum erase docker-common-2:1.13.1-96.gitb2f74b2.el7.centos.x86_64
- 再次安装 docker
[root@centos7 ~]# yum -y install docker-ce