简体   繁体   English

docker-machine安装由于“无法读取CA证书”错误而失败

[英]docker-machine install fails due to 'Couldn't read CA cert' error

I am trying to setup docker-machine locally on my Windows machine and I followed the install instructions at the Docker Machine Page . 我试图在Windows机器上本地设置docker-machine ,并且按照Docker Machine Page上的安装说明进行操作。

Per the instructions, I ran the following commands in my bash terminal 按照说明,我在bash终端中运行了以下命令

To install Docker client binary 安装Docker客户端二进制文件

$curl -L https://github.com/docker/machine/releases/download/v0.3.0/docker-machine_windows-amd64.exe > /bin/docker-machine

and to install Docker machine binary 并安装Docker机器二进制文件

$ curl -L https://github.com/docker/machine/releases/download/v0.3.0/docker-machine_windows-amd64.exe > /bin/docker-machine

when I try to run docker-machine -v I get the following error 当我尝试运行docker-machine -v出现以下错误

FATAL[0000] Couldn't read ca cert 'C:\\Users\\Me\\.boot2docker\\certs\\boot2doker-vm\\ca.pm: open 'C:\\Users\\Me\\.boot2docker\\certs\\boot2docker-vm'\\ca.pem: The filename, directory name, or volume label syntax is incorrect.

I did some searching and came across a few posts, but can't really see any connection to what would be causing my issues... 我做了一些搜索,发现了几篇文章,但看不到与导致我的问题的原因有任何联系...

https://github.com/hypriot/kitematic/pull/1 https://github.com/hypriot/kitematic/pull/1

https://github.com/docker/machine/issues/908 https://github.com/docker/machine/issues/908

I installed docker machine today on my Windows 7 machine and run the command without any problem. 我今天在Windows 7机器上安装了docker机器,并且运行命令没有任何问题。

Did you use boot2docker before on your machine? 您之前在机器上使用过boot2docker吗? If you did, it might be related as mine is a clean machine without any pre-existing docker installations. 如果您这样做了,可能与它有关,因为我的机器是一台干净的机器,没有任何预先存在的Docker安装。

Its referring to boot2docker environment. 它指的是boot2docker环境。

see this: DOCKER_CERT_PATH="/Users//.docker/machine/machines/dev" 看到这个:DOCKER_CERT_PATH =“ / Users //。docker / machine / machines / dev”

I got the same answer and was able to resolve it by changing the path pattern to be unix-style in the environment variable. 我得到了相同的答案,并且能够通过将路径模式更改为环境变量中的unix样式来解决它。

Inside msysgit bash shell: 在msysgit bash shell中:

export DOCKER_CERT_PATH=/C/Users/Me/.boot2docker/certs/boot2docker-vm

This resolved boot2docker. 这样解决了boot2docker。

Note that I also tried using docker-machine before using boot2docker which previously failed with the same error. 请注意,在使用boot2docker之前,我也曾尝试使用boot2docker docker-machine ,后者先前因相同的错误而失败。 That was not resolved the same way boot2docker could be resolved. 不能以解决boot2docker的方式解决该问题。 For now only boot2docker is working for me. 目前只有boot2docker为我工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM