I got a Ubuntu host with multiple IP address aliases and I want to expose the ports from docker containers connected to one docker network bridge to a specific IP address of the host and the ports from the other containers to the other IP address of the host.
I found out how to do this:
this way exported ports are available at this IP but not on other IP addresses of the host.