As the title says. I need to be able to retrieve the IP address the docker hosts and the portmaps from the host to the container, and doing that inside of the container.
The only way is passing the host information as environment when you create a container
run --env =