Docker Beta for Mac的证书文件夹在哪里

前端之家收集整理的这篇文章主要介绍了Docker Beta for Mac的证书文件夹在哪里前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

我找不到Docker Beta for Mac创建的任何证书文件.我需要它与我的IDE连接到Docker.

最佳答案

I installed the Docker Beta for Mac and found no ~/.docker/ directory.

如“Docker for Mac vs. Docker Toolbox¶”所述

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.

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中的证书.

使用新的Docker for Mac设置,检查/Applications/Docker.app/中是否有任何证书(如/Applications/Docker.app/Contents/Resources中所示)

如果您依赖默认的HyperKit,则不需要证书才能使用docker命令联系VM.
如下面的注释(和OP Kroderiaanswer)所示,默认VM只能通过/var/run/docker.sock访问.
正如以下Ellis评论,这对于像PyCharm这样的软件来说可能是一个挑战:

when it (PyCharm) tries to connect it produces:

Cannot connect: javax.ws.rs.ProcessingException: 
Could not initialize class org.newsclub.net.unix.NativeUnixSocket"

Issue 153973建议:

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.

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相关文章