Docker Community Forums

Share and learn in the Docker community.

Set host ip in environment variable at build time

Is there any way to read and set host ip in environment variable at build time? I mean any command/statement that can do this natively in docker file? I am using Windows container.