Am I trying to connect to a TLS-enabled daemon without TLS?

前端 未结 20 2269
暗喜
暗喜 2020-11-28 17:56

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

相关标签:
20条回答
  • 2020-11-28 18:48

    I had the same problem. A simple service docker restart solved the problem.

    0 讨论(0)
  • 2020-11-28 18:55

    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).

    0 讨论(0)
提交回复
热议问题