As you know after Docker 1.9 we can create bridges to connect containers.
I have created two custom bridges: bridge A 172.18.0.1
and bridge B 172.19.0.1
.
Now I have a container1 on bridge A, and a container2 on bridge B called "mailServer".
The container1 needs to reach container2 by a DNS, how should I do this? Because they are on different bridges so they cannot talk to each other. Do I need a router and can I achieve this by Docker?
This is a new feature of Docker and I didn't find much information. Thanks.