我在Oracle Linux 7上安装了 docker ,sudo yum install docker
并认为我删除了它,sudo yum remove docker
但/usr/bin/docker
仍然存在:
$ docker --version
Docker version 19.03.11-ol, build 9bb540d
CentOS有一个类似的问题,但尝试那里的答案并没有删除任何内容,见下文。
$ sudo yum remove docker \
> docker-client \
> docker-client-latest \
> docker-common \
> docker-latest \
> docker-latest-logrotate \
> docker-logrotate \
> docker-engine
Loaded plugins: langpacks, ulninfo
No Match for argument: docker
No Match for argument: docker-client
No Match for argument: docker-client-latest
No Match for argument: docker-common
No Match for argument: docker-latest
No Match for argument: docker-latest-logrotate
No Match for argument: docker-logrotate
No Match for argument: docker-engine
No Packages marked for removal
甚至记录在案的解决方案:
$ sudo yum remove docker-ce docker-ce-cli containerd.io
Loaded plugins: langpacks, ulninfo
No Match for argument: docker-ce
No Match for argument: docker-ce-cli
No Match for argument: containerd.io
No Packages marked for removal
如何从我的系统中彻底清除它?谢谢!