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

前端 未结 20 2385
暗喜
暗喜 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条回答
  •  猫巷女王i
    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).

提交回复
热议问题