Using KDE Neon
I installed docker desktop using these instructions: https://docs.docker.com/desktop/install/ubuntu/
After having problems with it, I uninstalled using
$ sudo apt remove docker-desktop
$ rm -r $HOME/.docker/desktop
$ sudo rm /usr/local/bin/com.docker.cli
$ sudo apt purge docker-desktop
Then I installed docker with these instructions: https://docs.docker.com/engine/install/ubuntu/#set-up-the-repository
Docker runs fine when using sudo, but without it's using the wrong socket path.
machi@machi-kde-surface:~$ docker run hello-world
docker: Cannot connect to the Docker daemon at unix:///home/machi/.docker/desktop/docker.sock. Is the docker daemon running?.
See 'docker run --help'.
machi@machi-kde-surface:~$
I've checked /etc/init/docker.conf but but it seems fine. Where is it getting this old desktop path from?
My problem is that docker was pointing to the wrong context.

Change back to default by running docker context use default

Removed /home/<user>/.docker, reinstalled docker, and now it works.
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