Docker Beta on OSX with NetBeans 8.2 workaround

The next release of NetBeans (8.2) has a cool new build-in support for Docker.

Get latest NetBeans development build here.

nb_dev
docker_beta

But since I switched to native Docker integration on my Mac the connection broke as now Docker communicates via socket instead of docker-machine URL:

unix:///var/tmp/docker.sock

NetBeans would like to get a valid http or https URL, thus this URI scheme is currently not supported:

nb_docker1

But with help of socat (e.g. via brew install socat) you can create a TCP port (e.g. 9090) listening on localhost attached to the Docker socket to establish a bidirectional connection:

socat tcp-listen:9090,fork UNIX:///var/run/docker.sock

socat

Now we are talking

nb_docker2

nb_docker3

nb_docker4

nb_docker5

nb_docker6

Links

http://wiki.netbeans.org/Docker

https://blogs.oracle.com/geertjan/entry/docker_hub_in_netbeans_ide

http://bits.netbeans.org/download/trunk/nightly/latest/

http://www.dest-unreach.org/socat/