I'm wanting to make a connection back to the email server on the host computer from within the docker. Right now, I can do ifconfig and get the ip from the docker0 device, but that requires manual intervention to set the IP within the docker. And if the docker image is saved and copied to a new server, that IP might not be the same.
Is there some way to get the internal host IP (from docker0) from within the docker at runtime (maybe from the environment)?
At the moment I don't see it as part of the environment, so I'm wondering if I have to something during docker setup to enable it.