I knew container can bind the exposed port to a specific network interface. But I think it’s works only for traffic which comes from external network to container.
I would like to assign a specific interface to a container so that the container can reach external network from the interface.
For example, I have two interface, eth0 and eth1. I want to bind a container to eht0. When Executing command “ping 188.8.131.52” in a container, the traffic should reach external network from eth0 consequently.
Could it be possible and how to achieve it ?
I didn’t find the right solution from the Internet.