I've got a consul agent running on my host machine, and a couple of services running inside docker containers. I'm using 'gliderlabs/registrator' to discover these services and register them with the local consul agent.
The consul agent is configured to accept connections from everywhere (
"client_addr": "0.0.0.0" option), which I can "prove" by doing
dig @172.17.42.1 -p 8600 someservice.service.consul from the host machine.
Problem is that I don't seem to be able to do the same from within the containers, the dig request just times out and I can't
curl it either. I do pass
--dns 172.17.42.1. Any ideas?
Note: I want to avoid using
--net=host if possible.