I followed the uninstall instructions here. Then I ran these commands:
sudo apt-get purge docker-engine
sudo apt-get autoremove --purge docker-engine
rm -rf /var/lib/docker
So after I did all this I ran this command to see if docker files are any where else:
sudo find / -name '*docker*'
I found several places where docker files still exists.
/etc
/sys
/lib
/usr
/usr
/run
/proc
/var
Docker exists in subfolders in the list above. I can post every path if you like. There is about 200 locations.
Is there a way to totally and completely remove docker everywhere?
/usr/local/bin/docker-compose
. – Gaia Jul 09 '18 at 19:51/etc/docker
directory and all contents – paulperry Nov 17 '18 at 21:48$ sudo iptables -L
after this. – eugene Apr 09 '19 at 09:07sudo apt-get purge docker-ce-cli
as well. – irene Apr 23 '19 at 04:36~/.docker
directory – SBH May 14 '19 at 07:30sudo iptables -L
. – We Are All Monica Jan 10 '20 at 23:45iptables-save | grep -v -i docker | iptables-restore
, with a backup first:iptables-save > $(date -I)-iptables.save
– Pablo Bianchi Feb 15 '21 at 05:38sudo rm /usr/share/keyrings/docker-archive-keyring.gpg
– tomsihap Jan 26 '22 at 09:31containerd.io
in the commands – Omar Omeiri Oct 27 '22 at 12:33ip link delete docker0
to get rid of annoying messageIPv4 address for docker0: 172.17.0.1
when you login. – Mikhail Kashkin Nov 06 '22 at 23:49containerd.io
too – shitpoet Jan 10 '23 at 10:06sudo apt-get remove docker docker.io containerd runc
. – Saïd Mar 09 '23 at 14:44dpkg -l | grep -i docker
. Revoved it by runningsudo apt-get purge docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin docker-ce-rootless-extras
So I think first thing to run is the things from docs.
– Darius.V Nov 23 '23 at 07:03