I have installed docker as described here raspberrypi.org/blog/docker-comes-to-raspberry-pi with curl -sSL https://get.docker.com | sh.
How do I uninstall it?
- 233
- 1
- 3
- 6
4 Answers
I had to use sudo apt remove docker-ce. The script at get.docker.com runs "$pkg_manager install -y -q docker-ce$pkg_version" so docker-ce is the package, not docker.
- 6,357
- 3
- 25
- 39
- 356
- 2
- 4
To remove the package:
sudo apt remove docker-ce*
To remove the docker0 network interface:
sudo ip link delete docker0
- 161
- 1
- 2
Additional:
Remove any USB Ethernet entries that you might have put at the bottom of the /etc/dhcpcd.conf
why? I upgraded to buster stable and my RPi3B+ seemed like it was fire-walled. Above fixes ethernet ghosted connections, WIFI was working. I say ghosted because the Plymouth desktop showed a live connected eth0 and Ip address, for example, 192.168.1.100 but couldn't ping anything local to remote and vice versa. If I locally clicked on the WiCD icon the network would come alive. But not on a reboot.
The residue of Docker USB-net connections to the swarm, in the dhcpd, was stopping me using the ethernet.
- 4,434
- 1
- 20
- 39
- 21
- 1