I've installed Docker through the Software store, which indicated that it was a Snap package. Which is fine by me, I guess, but unfortunately, every Docker command I've tried doesn't work:
$ docker info
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.30/info: dial unix /var/run/docker.sock: connect: permission denied
Any idea how to fix this?
Edit: I've worked around this for now by installing Docker from Docker's own repositories, which might work for people browsing this question in the future as well. I'm leaving the question open for those who want to be able to run it from the Snap, though.
docker
group,id -nG
did not show docker and anydocker
command resulted in a permission denied error. Logging out and back in did not work because docker system process keeps running. Rebooting system or restarting docker showed user as part of docker group and allowed executing docker commands. NOTE: 0 rep, can't add comment.