I\'m trying to learn about Docker, but I keep getting cryptic (to me) error messages.
Possibly the simplest example of this is trying to print the version of Docker
For me the following steps worked:
docker run hello-world fails with this socked error as in the question, but running sudo docker run hello-world worked.docker group, sudo adduser user docker. Then you must restart your machine or use su - user (check using groups command if are in the docker group).After that, hello-world started to work.
My answer is based on How can I use docker without sudo? which explains what go wrong.