Firstly, sorry for my bad english.
We have a ubuntu server which has 2 eth interface and 2 different ip. We want to host 2 apps with 2 docker containers and in containers we must use self-domain (domains which we redirect to ips) ip's as gateway.
In other words, when we attach container 1 (hosts for xx.xx.xx.98 and its domain) and run "curl http://checkip.dyndns.org" we want to see xx.xx.xx.98 ip in dyndns.org response. And in container 2 (hosts for xx.xx.xx.99 and its domain) we want to see xx.xx.xx.99 ip in dyndns.org response.
Is it possible and if it is, how can we do this?
In addition, I read these articles and I find out that we can use only one bridge for docker, this means all docker containers have to use same gateway. Is it true?
https://docs.docker.com/articles/networking/#bridge-building http://jpetazzo.github.io/2013/10/16/configure-docker-bridge-network/