title: Trying docker in docker getting TCP connection refused error
body: <p>I am  trying to run docker in docker and getting <strong>TCP 127.0.0.1:5000: connection refused</strong>. Can someone explain why this happened and how I can fix it.</p>
  
  <p>Here is what I have tired:</p>
  
  <pre><code>docker run -it --privileged --name docker-server-test -d docker:1.7-dind
  
  docker run --rm --link docker-server:docker docker:1.7 pull my-server:5000/qe/busybox
  Unable to find image 'docker:1.7' locally
  Trying to pull repository docker.io/library/docker ... 1.7: Pulling from library/docker
  f4fddc471ec2: Already exists 
  da0daae25b21: Already exists 
  413668359dd0: Already exists 
  ab205815427f: Already exists 
  e8ace195c6b6: Already exists 
  2129588b76a3: Already exists 
  63f71ebd654b: Already exists 
  f3231b3888dd: Already exists 
  d449c5a1e017: Already exists 
  
  library/docker:1.7: The image you are pulling has been verified. 
  Important: image verification is a tech preview feature and should not be relied on to provide security.
  Digest: sha256:c3666cc6458e02d780492c75acf1b0bf3424c8dd6882361438a9b93b46c2aa55
  Status: Downloaded newer image for docker.io/docker:1.7
  
  Pulling repository my-server:5000/qe/busybox
  Get http://localhost:5000/v1/repositories/qe/busybox/tags: dial tcp 127.0.0.1:5000: connection refused
  </code></pre>