I have two network cards in my machine eth0 - connect to direct IP and eth1 - connects to private IP Address. When I run
docker run -it --rm gophernet/traceroute 18.104.22.168
I got following response:
1 172.17.0.1 (172.17.0.1) 0.010 ms 0.013 ms 0.003 ms
2 10.0.89.57 (10.0.89.57) 3050.885 ms !H 1682.487 ms !H
How would I make sure that docker uses public IP address instead of private IP address? I am using docker bridge mode to make sure this would work.
Thanks for your help on this.