How to remove a snap application (docker) completely

Viewed 34695

I made the mistake of installing Docker via Snap... Once I realised that snap hadn't permissions to run in my working directory (on a different partition), I removed it. Now I can't use docker after I've installed it via apt-get.

Please help.

I've done sudo snap remove docker but when I sudo apt install docker and run via docker, I get bash: /snap/bin/docker: No such file or directory

4 Answers

I had the same problem. This works for me.

Removing docker using snap

sudo snap remove docker

Try configuring unconfigured packages

sudo dpkg --configure -a

Update the contents of the repositories

sudo apt-get update

Try to fix missing dependencies:

sudo apt-get -f install

The command you are looking for is:

sudo apt install docker.io

i.e it's docker.io not just docker

On Ubuntu, the package docker is described as a "System tray for KDE3/GNOME2 applications", which is probably not what you want!

I did the same and just restarting the instance fixed it.

I had the same problem. This works for me.

sudo snap remove docker
sudo reboot 

the point is to restart the instance or terminal.

I hope this method can help

Related