How to specify eth0 or eth1 for "docker run -p port:port"


my machine has 2 network interfaces such as eth0, eth1.
I’d like to run 2 containers like
"docker run -p eth0.port:port application A"
"docker run -p eth1.port:port application B"
is it possible?
I have tried a couple of ways like eth0, eth1 or ip_address but all have syntax error.
Would you please share your option for this?

1 Like

The syntax should be something like:

$ docker run -d -p training/webapp python