I can't find any certificate files created by Docker Beta for Mac
. I need it for my IDE connection to Docker.
相关问题
- Docker task in Azure devops won't accept "$(pw
- Unable to run mariadb when mount volume
- Unspecified error (0x80004005) while running a Doc
- What would prevent code running in a Docker contai
- How to reload apache in php-apache docker containe
Spent the last few hours, but it's finally working:
@VonC takes the best answer.
I just wanna to provide my solution about this question. The question is about using a connection to manage docker. In fact I am using
Docker Integration
in IntelliJ.However, it's not the truth, the real socket path is
/var/run/docker.sock
. You can now useunix:///var/run/docker.sock
as API URL inDocker Integration
, not certificate files are needed.Guess what,
Docker Integration
ver 2.2.*, which works in the stable build(2016.1), failed with unix connection in Mac and got fixed in ver 2.3.1, which works in the preview build(2016.2). Which means if you want to make it works properly, you will need to update your IntelliJ to the preview build and install the newest plugin.Here's the worst thing. The
Docker Integration
ver 2.3.1 gotNullPointerException
when deploying the Dockerfile, which works in the stable version of IntelliJ andDocker Integration
ver 2.2.* viahttp
connection. I have sent an email to the plugin author and waiting for a furthur solution.As mentioned in "Docker for Mac vs. Docker Toolbox¶"
So you will see certs in
~/.docker/machine
only if you decide to create your own.With the new Docker for Mac setup, check if there are any certificates in
/Applications/Docker.app/
(as in/Applications/Docker.app/Contents/Resources
)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:
Issue 153973 suggests: