继续获取尝试启动码头服务时无法读取CA证书 [英] Keep getting Could not read CA certificate when trying to start docker

查看:202
本文介绍了继续获取尝试启动码头服务时无法读取CA证书的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试从boot2docker迁移到docker-machine。

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

我按照这里安装Docker,但是我不断收到以下消息:

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

推荐答案

我发现我的解决方案这里

我需要更新我的.bash_profile看起来像:

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=/Users/<useraccountfolder>/.docker/machine/machines/default

然后运行以下命令生成缺少的ca.pem :

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

docker-machine regenerate-certs default

我发布了这个,以防这可以帮助任何人。感谢/道具去github上的所有人,在一小时的痛苦之后发现。

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.

这篇关于继续获取尝试启动码头服务时无法读取CA证书的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆