Error pulling and pushing images to dockerhub

This morning, our team is experiencing errors pulling and pushing to dockerhub. The output of a “pull” is:

$ docker -D pull busybox
Pulling repository busybox
8c2e06607696: Error pulling image (latest) from busybox, Get https://registry-1.docker.io/v1/images/8c2e06607696bd4afb3d03b687e361cc43cf8ec1a4a725bc96
Error pulling image (latest) from busybox, Get https://registry-1.docker.io/v1/images/8c2e06607696bd4afb3d03b687e361cc43cf8ec1a4a725bc96e39f05ba97dd55/ancestry: EOF

The output of a “push” is:

$ docker push myorg/myimage:99
The push refers to a repository [myorg/myimage] (len: 1)
Sending image list
Pushing repository myorg/myimage (1 tags)
deadbeefcafe: Pushing
Failed to upload metadata: Put https://cdn-registry-1.docker.io/v1/images/deadbeefcafe.../json: EOF

Daemon logs:

time="2015-08-26T16:18:50.241286277Z" level=debug msg="Calling POST /images/create"
time="2015-08-26T16:18:50.241339876Z" level=info msg="POST /v1.20/images/create?fromImage=busybox%3Alatest"
time="2015-08-26T16:18:50.241402328Z" level=debug msg="Trying to pull busybox from https://registry-1.docker.io v2"
time="2015-08-26T16:18:50.385685162Z" level=debug msg="Fetched 1 base graphs at 2015-08-26 16:18:50.385649663 +0000 UTC"
time="2015-08-26T16:18:50.388270128Z" level=debug msg="Reloaded graph with 3 grants expiring at 2017-03-22 19:04:46.713978458 +0000 UTC"
time="2015-08-26T16:18:50.496367321Z" level=debug msg="Error getting v2 registry: Get https://registry-1.docker.io/v2/: EOF"
time="2015-08-26T16:18:50.496468277Z" level=debug msg="Trying to pull busybox from https://index.docker.io v1"
time="2015-08-26T16:18:50.510543510Z" level=debug msg="Fetched 1 base graphs at 2015-08-26 16:18:50.510525388 +0000 UTC"
time="2015-08-26T16:18:50.510577965Z" level=debug msg="hostDir: /etc/docker/certs.d/docker.io"
time="2015-08-26T16:18:50.510795378Z" level=debug msg="[registry] Calling GET https://index.docker.io/v1/repositories/library/busybox/images"
time="2015-08-26T16:18:50.513589362Z" level=debug msg="Reloaded graph with 3 grants expiring at 2017-03-22 19:04:46.713978458 +0000 UTC"
time="2015-08-26T16:18:51.808555424Z" level=debug msg="Retrieving the tag list"
time="2015-08-26T16:18:52.052947904Z" level=debug msg="Got status code 200 from https://registry-1.docker.io/v1/repositories/library/busybox/tags/latest"
time="2015-08-26T16:18:52.053311567Z" level=debug msg="Registering tags"
time="2015-08-26T16:18:52.090587333Z" level=debug msg="Not continuing with error: Error pulling image (latest) from docker.io/library/busybox, Get https://registry-1.docker.io/v1/images/8c2e06607696bd4afb3d03b687e361cc43cf8ec1a4a725bc96e39f05ba97dd55/ancestry: EOF"

Docker info:

$ docker info
Containers: 2
Images: 190
Storage Driver: aufs
 Root Dir: /mnt/sda1/var/lib/docker/aufs
 Backing Filesystem: extfs
 Dirs: 194
 Dirperm1 Supported: true
Execution Driver: native-0.2
Logging Driver: json-file
Kernel Version: 4.0.9-boot2docker
Operating System: Boot2Docker 1.8.1 (TCL 6.3); master : 7f12e95 - Thu Aug 13 03:24:56 UTC 2015
CPUs: 2
Total Memory: 996.1 MiB
Name: dev
ID: N3A2:M3MT:RM2R:6YCJ:HI4A:CSIN:4BXZ:GQIB:6XHU:ZRV6:RHWJ:5PS5
Debug mode (server): true
File Descriptors: 11
Goroutines: 17
System Time: 2015-08-26T16:23:39.323735471Z
EventsListeners: 0
Init SHA1:
Init Path: /usr/local/bin/docker
Docker Root Dir: /mnt/sda1/var/lib/docker
Username: ubuntu
Registry: https://index.docker.io/v1/
Labels:
 provider=virtualbox

Docker version:

$ docker -v
Docker version 1.8.1, build d12ea79

Providing the “-D” flag to docker doesn’t provide any more information. Please advise.

Hi.

I’m having a similar issue here. i’ve used docker-squash to squash an image and then saved the squashed image into a new docker image that was imported. suggestions?

The push refers to a repository [arcolombo/artemisunlayer] (len: 1)
3b15a479aa85: Image already exists
f43a789562e2: Image successfully pushed
20895e1cb336: Image successfully pushed
8bf26c72ef69: Image successfully pushed
90e1f131e119: Image push failed
FATA[1473] Error pushing to registry: Put https://registry-1.docker.io/v2/arcolombo/artemisunlayer/blobs/uploads/c7154030-84a0-4c2e-b783-590514f09394?_state=SG5dRTUm_qcSvUnlLHGReCeBb4K1SdNGbQp7MfD3wO97Ik5hbWUiOiJhcmNvbG9tYm8vYXJ0ZW1pc3VubGF5ZXIiLCJVVUlEIjoiYzcxNTQwMzAtODRhMC00YzJlLWI3ODMtNTkwNTE0ZjA5Mzk0IiwiT2Zmc2V0IjowLCJTdGFydGVkQXQiOiIyMDE1LTEwLTEyVDE4OjA5OjIxLjczNjYxNzA4N1oifQ%3D%3D&digest=sha256%3Abbe8192a830437430746d8afad853073e107e3a455d6627952c5b58af27bad75: EOF
anthonycolombo@quigonjinn:~/Documents$

[RESOLVED] At the end of the day, it was a corporate firewall that was blocking traffic to Docker Hub. When those rules were updated, pushes resumed as expected.