从 docker-ce 18.03.1 升级至 18.09.4 ,在安装 docker-ce-cli 时
# rpm -Uvh docker-ce-cli-18.09.4-3.el7.x86_64.rpm
出现下面的错误:
file /usr/bin/docker from install of docker-ce-cli-1:18.09.4-3.el7.x86_64 conflicts with file from package docker-ce-18.03.1.ce-1.el7.centos.x86_64
file /usr/share/bash-completion/completions/docker from install of docker-ce-cli-1:18.09.4-3.el7.x86_64 conflicts with file from package docker-ce-18.03.1.ce-1.el7.centos.x86_64
...
请问如何解决?
需要先卸载已经安装的 docker engine
# yum remove docker-ce