Docker package still usable after yum remove

Issues related to applications and software problems
Post Reply
rayriffy
Posts: 1
Joined: 2018/02/24 13:06:45

Docker package still usable after yum remove

Post by rayriffy » 2018/02/24 13:10:34

Hi guys, I have a problem while installing

Code: Select all

docker-ce
I trying to remove old docker by using command

Code: Select all

yum remove docker docker-common docker-selinux docker-engine
. But I noticed that all docker command is still usable.
For example,

Code: Select all

[root@caffeDNN ~]# docker version 
Client: Version: 1.13.1 
API version: 1.26 
Go version: go1.7.5
Git commit: 092cba3 
Built: Wed Feb 8 08:47:51 2017 
OS/Arch: linux/amd64 
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? 
[root@caffeDNN ~]#
So, I trying to uninstall it again by using the same command but yum could not found any docker package anymore.

Is there any solution to remove docker completely by avoiding conflict with docker-ce?

Method I tried
- Remove /var/lib/docker no luck
-Trying to install docker-ce to replace them no luck

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Docker package still usable after yum remove

Post by TrevorH » 2018/02/24 13:53:02

After you run the yum remove, do a which docker and see where it resides. Use rpm -qf /path/to/docker on whatever that returns to find out what package owns the file. If it responds with not owned and the file resides under a path like /usr/local or /opt then it's not installed from any package and someone has done an install from source on your machine.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply