Try connecting the container to the ‘host’ network.
e.g. –
docker run --network host ...
Run this from within the container to get the IP of the host:
route | awk '/^default/ { print $2 }'
Share and learn in the Docker community.
Try connecting the container to the ‘host’ network.
e.g. –
docker run --network host ...
Run this from within the container to get the IP of the host:
route | awk '/^default/ { print $2 }'