需要卸载Docker,但相关的组件或者文件无法自动删除,卸载不干净,下面记录卸载过程
yum remove docker \ docker-client \ docker-client-latest \ docker-common \ docker-latest \ docker-latest-logrotate \ docker-logrotate \ docker-selinux \ docker-engine-selinux \ docker-engine1 rm -rf /etc/systemd/system/docker.service.d rm -rf /var/lib/docker rm -rf /var/run/docker
#列出docker安装过的相关包
sudo yum list installed | grep docker
#删除相关安装包
sudo yum -y remove docker-ce.x86_64 sudo yum -y remove docker-ce-selinux.noarch