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
Share and learn in the Docker community.
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 ....