1. 停掉运行的容器,停掉docker
先停掉全部运行的容器,并删除
docker kill $(docker ps -a -q)
##删除所有的docker容器
docker rm $(docker ps -a -q)
##删除所有的docker镜像
docker rmi $(docker images -q)
2,删除docker所在目录
rm -rf /etc/docker
rm -rf /run/docker
rm -rf /var/lib/dockershim
rm -rf /var/lib/docker
3,卸载docker相关包
查看相关包
yum list installed | grep docker
把匹配到的包执行 yum remove 删除
yum remove containerd.io.x86_64
yum remove docker-ce.x86_64
yum remove docker-ce-cli.x86_64
yum remove docker-ce-rootless-extras.x86_64
yum remove docker-compose-plugin.x86_64
yum remove docker-scan-plugin.x86_64
标签:busy,resource,x86,remove,yum,rm,Device,64,docker From: https://www.cnblogs.com/xiao--bai/p/17148080.html