can't delete Docker from Centos 6

General support questions
Post Reply
Clark_87
Posts: 1
Joined: 2020/10/09 07:28:17

can't delete Docker from Centos 6

Post by Clark_87 » 2020/10/09 07:31:11

I tried literally all advices and hints, but still can not uninstall Docker completely from Centos 7. When I run this command:

$ yum remove docker-ce
And after that run this command:

$ docker ps
I still get this notorious alert:

Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

I also tried to remove all files and repositories related to Docker:

$ rm -rf /var/lib/docker
I tried many other remove commands, but still docker ps returns me that nasty alert. So, is there a way to completely erase Docker from Centos?

lightman47
Posts: 1203
Joined: 2014/05/21 20:16:00
Location: Central New York, USA

Re: can't delete Docker from Centos 6

Post by lightman47 » 2020/10/09 09:55:11

did you reboot after the remove - to get rid of the portions that were already running in memory?
Remember - importing/building packages will likely "byte you in the butt" come update time, long after you'd forgotten you did that! Use repos whenever possible.

Whoever
Posts: 1135
Joined: 2013/09/06 03:12:10

Re: can't delete Docker from Centos 6

Post by Whoever » 2020/10/09 20:18:32

Clark_87 wrote:
2020/10/09 07:31:11


Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
So docker is probably not running. What more do you need?

"probably" because you may be seeing a permission issue. What does

Code: Select all

ls -l /var/run/docker.sock
show?

Is this really CentOS6? If so you should be working on decommissioning it.

You could remove all the docker packages with:

Code: Select all

yum remove "docker*"

Post Reply

Return to “CentOS 6 - General Support”