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
I had the same problem. A simple service docker restart
solved the problem.
I was getting the same error on MacOS with sudo and without it.
I have solved it with:
boot2docker start
$(boot2docker shellinit)
P.S.: Thanks to Alan. I found out that this approach is recommended in their official documentation.
P.S.2: Sometimes boot2docker init
can be required before running two commands (thank you Aaron).