How to remove a snap application (docker) completely

Posted on Jul 17, 2023

Question

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

Answer

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