Hey guys,
I have a strange behavior inside docker (using docker 1.12.5/14777 for OS X) :
/ # vault server -config /config/vault.hcl -log-level=debug
Error detecting redirect address: Get http://consul:8500/v1/agent/self: dial tcp 198.105.254.130:8500: i/o timeout
However when I try it manually I can access the url as it resolves to the right ip :
/ # wget http://consul:8500/v1/agent/self
Connecting to consul:8500 (172.17.0.2:8500)
self 100% |*********************************************************************************************************************************| 4235 0:00:00 ETA
/ # grep consul /etc/hosts
172.17.0.2 consul 34c38fa694c0
Any idea why it resolves consul to 198.105.254.130 instead of 172.17.0.2 ? It seems to depend on the docker version or the docker configuration cause I don’t have the same issue on a public docker noting
Thank you