Now here is a one liner, which give you the answer:
/sbin/ip route|awk '/default/ { print $3 }'
Simply enter the container, use the command above and it will echo out the host IP address.
Have a nice day!
21-07-2023
Now here is a one liner, which give you the answer:
/sbin/ip route|awk '/default/ { print $3 }'
Simply enter the container, use the command above and it will echo out the host IP address.
Have a nice day!