Keep getting Could not read CA certificate when tr

2019-03-18 07:47发布

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:

Could not read CA certificate "/Users/<useraccountfolder>/.boot2docker/certs/boot2docker-vm/ca.pem": open /Users/<useraccountfolder>/.boot2docker/certs/boot2docker-vm/ca.pem: no such file or directory

when I run most any docker command.

8条回答
手持菜刀,她持情操
2楼-- · 2019-03-18 08:22

Please follow this guide: Docker for Mac vs Docker Toolbox

Worked for me, you need to unset the variables instead of creating them for mac.

# grep for DOCKER ENV vars
env | grep DOCKER
unset <DOCKER_VARS>

查看更多
贼婆χ
3楼-- · 2019-03-18 08:25

If the file is present in DOCKER_CERT_PATH env variable, the error could also be caused due to file permissions issue. Please check this use-case as well.

查看更多
登录 后发表回答