Docker-machine:找不到ca.pem [英] Docker-machine : ca.pem not found

查看:305
本文介绍了Docker-machine:找不到ca.pem的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在这里,我正在使用docker计算机创建测试计算机.

Here i am creating a test machine(dev) using the docker machine.

$ docker-machine create -d virtualbox dev
Creating CA: C:\Users\xxx\.docker\machine\certs\ca.pem
Creating client certificate: C:\Users\xxx\.docker\machine\certs\cert.pem
Creating VirtualBox VM...
Creating SSH key...
Starting VirtualBox VM...
Starting VM...

创建虚拟机并运行时没有任何缺陷. 这是我运行以下命令时的错误:

The vm gets created and runs with out flaws. And here is the error when i run the following command:

$ docker-machine env dev

open C:\Users\xxx\.docker\machine\machines\dev\ca.pem: The system cannot fin
d the file specified.

我不知道如何处理这个问题.尝试重新启动boot2docker.

I have no idea how to deal with this problem. Tried restarting boot2docker.

推荐答案

您应尝试使用docker-machine regenerate-certs dev.我认为的问题是,您的.pem文件以某种方式被删除或未创建.我遇到了同样的问题,并且重新生成证书解决了该问题(重新启动并没有帮助).

You should try using docker-machine regenerate-certs dev. The problem i think is that somehow your .pem file got deleted or was not created. I had the same issue and regenerating the certs fixed the problem (reboot did not help btw).

这篇关于Docker-machine:找不到ca.pem的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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