I have to link two containers so they can see each other. Of course the following...
docker run -i -t --name container1 --link container2:container2 ubuntu:t
I solved this by appending an ip-table into /etc/hosts of each container, for example