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
Since there is no bidirectional link I solved this issue with the --net argument. That way they are using the same network stack and can therefore access each other over the loopback device (localhost).
docker run -d --name web me/myserver
docker run -d --name selenium --net container:web me/myotherserver
So I can access from web the selenium server (port 4444) and my selenium server can access my web server (port 80).