Page 1 of 1

can't delete Docker from Centos 6

Posted: 2020/10/09 07:31:11
by Clark_87
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?

Re: can't delete Docker from Centos 6

Posted: 2020/10/09 09:55:11
by lightman47
did you reboot after the remove - to get rid of the portions that were already running in memory?

Re: can't delete Docker from Centos 6

Posted: 2020/10/09 20:18:32
by Whoever
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*"