title: docker installation on ubuntu in virtualbox, cannot pull images
body: <p>I have ubuntu 14.04.5 installed as guest os in virtualbox 5.0.26 running on windows 10. I am not aware of any issues with the ubuntu installation, it seems to run fine and has a bridged internet connection so gets its own ip. </p>
  
  <p>I have installed docker following the directions on <a href="https://docs.docker.com/engine/installation/linux/ubuntulinux/%20[docker-ubuntu]" rel="nofollow">docker docs for linux</a>. The installation goes fine without any errors and the docker daemon starts ok.
  Here is the docker info:</p>
  
  <pre><code>root@ubuntu-z9:~# docker info
  Containers: 0
  Running: 0
  Paused: 0
  Stopped: 0
  Images: 0
  Server Version: 1.12.0
  Storage Driver: aufs
   Root Dir: /var/lib/docker/aufs
   Backing Filesystem: extfs
   Dirs: 0
   Dirperm1 Supported: true
  Logging Driver: json-file
  Cgroup Driver: cgroupfs
  Plugins:
   Volume: local
   Network: overlay bridge host null
  Swarm: inactive
  Runtimes: runc
  Default Runtime: runc
  Security Options: apparmor
  Kernel Version: 4.2.0-27-generic
  Operating System: Ubuntu 14.04.5 LTS
  OSType: linux
  Architecture: x86_64
  CPUs: 10
  Total Memory: 31.42 GiB
  Name: ubuntu-z9
  ID: 7MPO:OHFW:3OBJ:KUVX:3YCS:XP4U:RE6W:SFC3:O4KK:GJJU:M6WJ:HYLY
  Docker Root Dir: /var/lib/docker
  Debug Mode (client): false
  Debug Mode (server): false
  Registry: https://index.docker.io/v1/
  WARNING: No swap limit support
  Insecure Registries:
   127.0.0.0/8
  </code></pre>
  
  <p>The machine can see the internet fine and access hub.docker.com from a browser.</p>
  
  <p>However, when I run the simple hello-world test the daemon hangs</p>
  
  <pre><code>root@ubuntu-z9:~# docker run hello-world
  Unable to find image 'hello-world:latest' locally
  </code></pre>
  
  <p>with a timeout.</p>
  
  <p>I can run docker-machine without any issues on the host windows 10 machine so I believe the issue lies in my setup of the ubuntu machine in virtualbox and docker.</p>
  
  <p>Here is the logging output of the docker daemon on the ubuntu guest machine:</p>
  
  <pre><code>$ docker pull hello-world
  
  DEBU[0093] Calling POST /v1.24/images/create?fromImage=hello-world&amp;tag=latest 
  DEBU[0093] Trying to pull hello-world from https://registry-1.docker.io v2 
  DEBU[0094] Increasing token expiration to: 60 seconds   
  ERRO[0494] Error trying v2 registry: error parsing HTTP 408 response body: invalid character '&lt;' looking for beginning of value: "&lt;html&gt;&lt;body&gt;&lt;h1&gt;408 Request Time-out&lt;/h1&gt;\nYour browser didn't send a complete request in time.\n&lt;/body&gt;&lt;/html&gt;\n\n" 
  ERRO[0494] Attempting next endpoint for pull after error: error parsing HTTP 408 response body: invalid character '&lt;' looking for beginning of value: "&lt;html&gt;&lt;body&gt;&lt;h1&gt;408 Request Time-out&lt;/h1&gt;\nYour browser didn't send a complete request in time.\n&lt;/body&gt;&lt;/html&gt;\n\n" 
  DEBU[0494] Skipping v1 endpoint https://index.docker.io because v2 registry was detected 
  ERRO[0494] Handler for POST /v1.24/images/create returned error: error parsing HTTP 408 response body: invalid character '&lt;' looking for beginning of value: "&lt;html&gt;&lt;body&gt;&lt;h1&gt;408 Request Time-out&lt;/h1&gt;\nYour browser didn't send a complete request in time.\n&lt;/body&gt;&lt;/html&gt;\n\n"
  </code></pre>
  
  <p>Any suggestions on a way forward to diagnose or fix the issue? </p>
  
  <p>Many thanks.</p>