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

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

    Usually most people have install boot2docker and old version of virtualbox. As said in installation guide, before installing Docker for Mac, we have to uninstall boot2docker and reinstall virtualbox to high version. https://docs.docker.com/engine/installation/mac/#/docker-for-mac

    Even though we have installed Docker for Mac, we still encountered error "Could not read CA certificate".

    My solution is to remove the docker related environment variables (DOCKER*) from .bash_profile. It seems a long term solution.

    1. vim ~/.bash_profile

    2. Comment something like DOCKER_*

    3. source ~/.bash_profile

    4. relaunch the terminal, you should have no problem on running : docker info or docker ps

    Hope it helps.

提交回复
热议问题