软件包docker未安装,所以不会被卸载

背景:发现docker有错
docker search hello-world命令,有时正常能搜到镜像,
有时报错Error response from daemon: Get https://registry-1.docker.io/v2/library/hello-world/manifests/...timeout
所以想要卸载重新安装

sudo apt-get remove docker
命令报错:软件包docker未安装,所以不会被卸载
但是sudo docker -v命令依然检查到版本

卸载可能存在的旧版本
sudo apt-get remove docker docker-engine docker-ce docker.io

猜你喜欢

转载自blog.csdn.net/xiaoqiaoliushuiCC/article/details/89298290