I can\'t find any certificate files created by Docker Beta for Mac
. I need it for my IDE connection to Docker.
I installed the Docker Beta for Mac and found no ~/.docker/ directory.
As mentioned in "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
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:
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 suggests:
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