Using pycharm docker plugin with docker beta

That workaround opens port 2376 to the world… as TLS isn’t enabled, this is a bad idea as anyone on the same network can hijack your docker daemon

You might want to try this:

$ socat TCP-LISTEN:2375,range=127.0.0.1/32,reuseaddr,fork UNIX-CLIENT:/var/run/docker.sock

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.