moby: OS X 10.11 - timed out index.docker.io

Times out on build or run.

VirtualBox to 5.0.5 r103020

Terminal output:

$ docker-machine create --driver virtualbox default
Creating VirtualBox VM...
Creating SSH key...
Starting VirtualBox VM...
Starting VM...
To see how to connect Docker to this machine, run: docker-machine env default
$ eval $(docker-machine env default)
$ docker run hello-world
Unable to find image 'hello-world:latest' locally
Pulling repository docker.io/library/hello-world
Network timed out while trying to connect to https://index.docker.io/v1/repositories/library/hello-world/images. You may want to check your internet connection or if you are behind a proxy.

$ docker version

Client:
 Version:      1.8.2
 API version:  1.20
 Go version:   go1.4.2
 Git commit:   0a8c2e3
 Built:        Thu Sep 10 19:10:10 UTC 2015
 OS/Arch:      darwin/amd64

Server:
 Version:      1.8.2
 API version:  1.20
 Go version:   go1.4.2
 Git commit:   0a8c2e3
 Built:        Thu Sep 10 19:10:10 UTC 2015
 OS/Arch:      linux/amd64

$ docker info

Containers: 0
Images: 0
Storage Driver: aufs
 Root Dir: /mnt/sda1/var/lib/docker/aufs
 Backing Filesystem: extfs
 Dirs: 0
 Dirperm1 Supported: true
Execution Driver: native-0.2
Logging Driver: json-file
Kernel Version: 4.0.9-boot2docker
Operating System: Boot2Docker 1.8.2 (TCL 6.4); master : aba6192 - Thu Sep 10 20:58:17 UTC 2015
CPUs: 1
Total Memory: 996.2 MiB
Name: default
ID: INDA:V46X:P2VC:C2QZ:WRHV:RYZ4:SXRF:6RAR:YUDC:XP45:PJTI:NBZE
Debug mode (server): true
File Descriptors: 11
Goroutines: 16
System Time: 2015-10-12T15:22:04.149833281Z
EventsListeners: 0
Init SHA1: 
Init Path: /usr/local/bin/docker
Docker Root Dir: /mnt/sda1/var/lib/docker
Labels:
 provider=virtualbox

$ uname -a

Darwin Juans-Macintosh.local 15.0.0 Darwin Kernel Version 15.0.0: Wed Aug 26 16:57:32 PDT 2015; root:xnu-3247.1.106~1/RELEASE_X86_64 x86_64

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Comments: 16 (3 by maintainers)

Most upvoted comments

This fixed it for me:

$ docker-machine restart default # Restart the environment $ eval $(docker-machine env default) # Refresh your environment settings

via http://stackoverflow.com/a/32023104/194309

The issue got solved when I changed the DNS server to one of Google’s

Same here. I have installed Docker for Mac to my new machine today, the docker-compose works well after changing the DNS to 8.8.8.8.

I can’t believe it. Changing the DNS from 4.4.2.2 to Google’s 8.8.8.8 solve the issues. Who knows???

Just some context: I removed the old Docker and installed Docker for Mac Beta anew.