The supported mechanism for talking to Docker for Mac is over the Unix socket at /var/run/docker.sock. Looking at the PyCharm stack trace - it appears to be written in Java. It seems that docker-java also supports communication over Unix sockets so this should be possible!
I upgraded to
Docker for Mac Version 1.11.0-beta8 (build: 6072)
3c1bfeb0e86a9403f82302edfea4c4987cc2cb32
and the problem remains.
I don’t know if the problem is with PyCharm or Docker for Mac.
I was looking for an exposed ip like I use with docker-machine to develop for a workaround where could I find the ip? http://localhost:2356 doesn’t work like I imagine it would neither did 12.1.1.16, 192.168.99.1. Any advice would be appreciated.
Port 2375 is still open to the world, but only connections from 127.0.0.1 are permitted. There may be a better option i.e don’t listen on all interfaces, but I’m not familiar enough with socat to advise.
The recommended fix would be for PyCharm to fix this in their code.
I tried socat, and it works for building images, but PyCharm fails with com.github.dockerjava.api.exception.InternalServerErrorException: EOF error trying to run container:
This must be more secure:
socat TCP-LISTEN:2376,reuseaddr,fork,bind=127.0.0.1 UNIX-CLIENT:/var/tmp/docker.sock
Anyway docker fails immediately after container starts. It return 500 error code and EOF
There is part of communication log between PyCharm and Docker (you can see it with -v socat option)
What is the latest on Docker for Mac / PyCharm integration. I would like to deploy to a container that I have previously built, but cannot seem to get the settings correct…