加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

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

发布时间:2020-12-16 03:31:38 所属栏目:安全 来源:网络整理
导读:我找不到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

我找不到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 Kroderia的answer)所示,默认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

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读