Original system ipaddress

While using docker build , i could not get original system ipaddress . its showing docker container address.But i want to save original system ipaddress in python.

Kindly help me

A container is supposed to be isolated and not able to access anything from the host, unless you specificly configure it to see/access those things.

You could make the build container use the host’s network interface to get the host’s ip: docker build --network=host ....