Is there any way to have the hosts ip address registered in the container?
Something akin to
--add-host=dockerhost:$(get host ip address) when plain
I know there is a meta data service (
curl rancher-metadata/self/host/agent_ip gives the address I’m after), but this requires a curl in the container with some accompanying logic to make it all work, and has to be repeated in every container that needs this ip.
What we’re after is to use services that are running on the rancher agent nodes. And I want the container to hit the host it is running on.
Preferably, there would be a label or some such we could use in the compose file that would yield the same effect as the