Keep getting Could not read CA certificate when trying to start docker

前端 未结 8 2281
無奈伤痛
無奈伤痛 2021-02-07 12:23

I am attempting to migrate from boot2docker to docker-machine.

I followed the directions here to install docker but I keep getting the following message:



        
8条回答
  •  误落风尘
    2021-02-07 13:08

    Docker from the launchpad on my Mac quit working as well as commands from terminal. I'm just going to say what I did to fix it for me regardless of whether it makes sense in case it helps someone else out.

    • I ran unset ${!DOCKER*}
    • I then ran:

      export DOCKER_HOST=tcp://192.168.99.100:2376
      export DOCKER_MACHINE_NAME=default
      export DOCKER_TLS_VERIFY=1
      export DOCKER_CERT_PATH=~/.docker/machine/certs/
      
    • I then ran: docker (which only partially worked)

    • then I ran: unset ${!DOCKER*} again
    • Then I launched docker from the Launchpad, gave it a minute and now it's running again and everything is back to normal.

提交回复
热议问题