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

前端 未结 20 2383
暗喜
暗喜 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:46

    You will need to do:

    $boot2docker init
    $boot2docker start
    

    The following settings fixed the issue:

    $export DOCKER_HOST=tcp://192.168.59.103:2376
    $export DOCKER_CERT_PATH=/Users/{profileName}/.boot2docker/certs/boot2docker-vm
    $export DOCKER_TLS_VERIFY=1
    

提交回复
热议问题