Docker Beta for Mac的证书文件夹在哪里 [英] Where is the certificates folder for Docker Beta for Mac
问题描述
我找不到由 Docker Beta for Mac
创建的任何证书文件。我需要它与Docker的IDE连接。
I can't find any certificate files created by Docker Beta for Mac
. I need it for my IDE connection to Docker.
推荐答案
我安装了Docker Beta for Mac发现没有〜/ .docker /目录。
I installed the Docker Beta for Mac and found no ~/.docker/ directory.
如 Docker for Mac与Docker Toolbox¶
使用Docker for Mac,您只能获得一个虚拟机,而您无法管理它。
由Docker for Mac应用程序管理,其中包括autoupdate来更新Docker的客户端和服务器版本。
With Docker for Mac, you get only one VM, and you don’t manage it.
It is managed by the Docker for Mac application, which includes autoupdate to update the client and server versions of Docker.
如果您需要多个虚拟机,并且想要管理您正在使用的Docker客户端或服务器的版本,则可以继续使用 docker-machine
If you need several VMs and want to manage the version of the Docker client or server you are using, you can continue to use docker-machine
所以你会看到〜/ .docker / machine
如果您决定创建自己的。
So you will see certs in ~/.docker/machine
only if you decide to create your own.
使用新的Docker for Mac设置,检查 /Applications/Docker.app中是否有任何证书/
(如 /Applications/Docker.app/Contents/Resources
)
With the new Docker for Mac setup, check if there are any certificates in /Applications/Docker.app/
(as in /Applications/Docker.app/Contents/Resources
)
如果您依靠默认的HyperKit,那么那里不需要证书,以便与docker命令联系VM。
如下面的评论(和 OP Kroderia 的 answer ),默认的VM只能通过 /var/run/docker.sock
。
作为 Ellis 在下面的评论中,对于某些软件,如 PyCharm ,这可能是一个挑战: p>
If you rely on the default HyperKit, then there is no need for certificate in order to contact the VM with docker command.
As illustrated by the comments below (and the OP Kroderia's answer), the default VM is only accessed through /var/run/docker.sock
.
As Ellis comments below, that can be a challenge for some software like PyCharm:
当它(PyCharm)尝试连接它时会生成:
when it (PyCharm) tries to connect it produces:
Cannot connect: javax.ws.rs.ProcessingException:
Could not initialize class org.newsclub.net.unix.NativeUnixSocket"
问题153973 建议:
这是因为Docker插件在PyCharm中捆绑在一起。它可以手动更新,但是即使使用Docker 2.3.1,Docker Python解释器的问题也不会被修复。
下一个 PyCharm 2016.2 EAP 与修复程序正在进行中。
This is due to that Docker plugin is bundled in PyCharm. It could be updated manually but even with Docker 2.3.1 the problem with Docker Python interpreter will not be fixed.
The next PyCharm 2016.2 EAP with the fix is on its way.
您描述的 socat
的解决方法将在下一个PyCharm 2016.2 EAP中提供。下一个EAP将随着更新的Docker插件版本即将发布。
The workaround with socat
you described will be available in the next PyCharm 2016.2 EAP. The next EAP will be released soon with the updated Docker plugin version.
socat TCP-LISTEN:2375,reuseaddr,fork UNIX-CONNECT:/var/run/docker.sock
这篇关于Docker Beta for Mac的证书文件夹在哪里的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!