Docker with Two network Adapters


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

I got following response:

1 ( 0.010 ms 0.013 ms 0.003 ms
2 ( 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.

Gaurav Maniar