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?
can't delete Docker from Centos 6
-
- Posts: 1521
- Joined: 2014/05/21 20:16:00
- Location: Central New York, USA
Re: can't delete Docker from Centos 6
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
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
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*"