Docker Community Forums

Share and learn in the Docker community.

How to expose the host's IP to a container?

Can it be done using docker-compose?

My container has a pice of code that calls the docker API, to update itself when there is a new version available on the registry. Hence, I need to know the IP of the host to fire the API calls agains.

ps. Container runs in privileged mode.