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

前端 未结 8 2283
無奈伤痛
無奈伤痛 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:09

    I found my solution here

    I needed to update my .bash_profile to look like:

    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/machines/default
    

    and then run the following to generate the missing ca.pem:

    docker-machine regenerate-certs default
    

    I posted this in case this could help anyone else. Thanks/props go to everyone in that thread on github which was found after an hour of pain.

提交回复
热议问题