I have a host with multiple external IP addresses and I’m running docker with a scalable service. My end goal is to be able to bind to a specific IP address of the host from with in the container. For example I’d like to execute
curl http://ifconfig.co --interface ethN where
N is the Nth interface in the container bound to the Nth IP address of the docker host.
Is this possible with a docker service?