title: How to create a bidirectional link between containers?
body: <p>I have to link two containers so they can see each other. Of course the following...</p>
  
  <pre><code>docker run -i -t --name container1 --link container2:container2 ubuntu:trusty /bin/bash
  docker run -i -t --name container2 --link container1:container1 ubuntu:trusty /bin/bash
  </code></pre>
  
  <p>...fails at line 1 because a container needs to be up and running in order to be a link target:</p>
  
  <pre><code>2014/08/15 03:20:27 Error response from daemon: Could not find entity for container2
  </code></pre>
  
  <p>What is the simplest way to create a bidirectional link?</p>