title: Cannot download Docker image from repository
body: <p>I am trying to create a swarm setup on my laptop. I am running swarm daemon on laptop, and running 2 Ubuntu 14.04 VM as docker node. On one of the nodes I am able to run swarm and I can connect to swarm daemon. I can list the node with docker info and spawn a container on it. But when I try to pull swarm image on another VM node, I get the following error:</p>
  
  <pre><code>pensu@pensu-virtual-machine:~$ sudo docker pull swarm
  Pulling repository swarm
  FATA[0025] Get https://index.docker.io/v1/repositories/library/swarm/images: dial tcp: lookup index.docker.io on 127.0.1.1:53: read udp 127.0.1.1:53: i/o timeout 
  </code></pre>
  
  <p>I checked and someone said it's a proxy issue. But I am not using any proxy server. Here are other relevant information:</p>
  
  <pre><code>pensu@pensu-virtual-machine:~$ sudo docker version
  Client version: 1.5.0
  Client API version: 1.17
  Go version (client): go1.4.1
  Git commit (client): a8a31ef
  OS/Arch (client): linux/amd64
  Server version: 1.5.0
  Server API version: 1.17
  Go version (server): go1.4.1
  Git commit (server): a8a31ef
  </code></pre>
  
  <p>Here is my /etc/default/docker:</p>
  
  <pre><code>pensu@pensu-virtual-machine:~$ cat /etc/default/docker 
  # Docker Upstart and SysVinit configuration file
  
  # Customize location of Docker binary (especially for development testing).
  #DOCKER="/usr/local/bin/docker"
  
  # Use DOCKER_OPTS to modify the daemon startup options.
  #DOCKER_OPTS="--dns 8.8.8.8 --dns 8.8.4.4"
  
  # If you need Docker to use an HTTP proxy, it can also be specified here.
  #export http_proxy="http://127.0.0.1:3128/"
  
  # This is also a handy place to tweak where Docker's temporary files go.
  #export TMPDIR="/mnt/bigdrive/docker-tmp"
  </code></pre>
  
  <p>Any idea about what am I doing wrong?</p>
  
  <p><strong>Update:
  This is something different. I was trying this all from home. Today morning I came to office, logged in and voila, I was able to pull the image!</strong></p>
  
  <p><strong>Not sure what is the reason, but looks like I will need to come to office to pull docker images!</strong></p>