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
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!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With