This tool is based on a post. It's a good proven way to extract a host ip from a docker container (that is using host networking).
Add this function definition to any set of prompts that might need to extract the host IP address.
- container:
image: vonwig/what-is-my-ip:latest
name: what-is-my-ip
description: Get the host IP address for this machine.