Systemd安装的Docker
停止及禁用服务:
systemctl stop docker
systemctl disable docker
启动配置清理
rm -rf /etc/systemd/system/docker.service
Images、containers、volumes或自定义的配置文件不会被自动删除,所以你需要手动执行:
sudo rm -rf /etc/docker/
sudo rm -rf /var/lib/docker
sudo rm -rf /var/lib/containerd
sudo rm -rf /var/run/docker
sudo rm -rf /var/run/dockershim.sock