I have a container running a Java web service with jetty. I would like to connect to the Docker host process, ie tcp://dockerhost:2376, to build and publish images to the local registry on demand.
I can connect to the host from the container but for some annoying reason, I can't seem to connect to the docker host process... Could this be down to some internal firewall rules? The strange thing is I can connect to other docker services, ie on other machines, but NOT the one running the container.
EDIT - just to be clear
- my docker daemon runs on 192.168.22.150, port 2376
- I can do curl -X GET http://192.168.22.150:2376 from any machine (VM) on that net and I get the usual message
- I can do curl -X GET http://192.168.22.150 from my docker container and that works fine (I have a process listening on 80)
- I can do curl -X GET http://192.168.22.XXX:2376 on another machine running a docker daemon from my container
- If I do curl -X GET http://192.168.22.150:2376 from my container, it hangs Feels like it's a firewall issue?