moby / moby

The Moby Project - a collaborative project for the container ecosystem to assemble container-based systems
https://mobyproject.org/
Apache License 2.0
68.48k stars 18.63k forks source link

Docker pull fails with unexpected EOF in archive #2461

Closed tgummerer closed 10 years ago

tgummerer commented 10 years ago

Hi,

I've started to try out docker, but can't pull large images. docker pull busybox for example works fine, while docker pull centos or docker pull ubuntu give me an error similar to the following:

core@localhost ~ $ docker pull centos
Pulling repository centos
539c0211cd76: Error pulling image (latest) from centos, endpoint: https://cdn-registry-1.docker.io/v1/, exit status 2: tar: Ignoring unknown extended header keyword `SCHILY.fflags'

gzip: stdin: unexpected end of file
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
539c0211cd76: Error pulling image (latest) from centos, exit status 2: tar: Ignoring unknown extended header keyword `SCHILY.fflags'

gzip: stdin: unexpected end of file
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
2013/10/30 11:31:57 Server error: 404 trying to fetch remote history for centos

The daemon gives the followinng output when debug is turned on, in case it's helpful:

[debug] api.go:962 Calling POST /images/create
2013/10/30 11:35:06 POST /v1.6/images/create?fromImage=centos&tag=
[debug] registry.go:294 [registry] Calling GET https://index.docker.io/v1/repositories/centos/images
[debug] server.go:478 Retrieving the tag list
[debug] registry.go:269 Got status code 200 from https://cdn-registry-1.docker.io/v1/repositories/library/centos/tags
[debug] server.go:493 Registering tags
[debug] registry.go:179 Ancestry: [
    "539c0211cd76cdeaedbecf9f023ef774612e331137ce7ebe4ae1b61088e7edbe"
]
[debug] image.go:338 Json string: {{"comment": "Imported from -", "container_config": {"Tty": false, "Cmd": null, "MemorySwap": 0, "Image": "", "Hostname": "", "User": "", "Env": null, "Memory": 0, "Detach": false, "Ports": null, "OpenStdin": false}, "id": "539c0211cd76cdeaedbecf9f023ef774612e331137ce7ebe4ae1b61088e7edbe", "created": "2013-04-01T01:20:58.331937915-07:00"}}

[debug] image.go:91 Start untar layer
[debug] archive.go:119 [tar autodetect] n: 10
[debug] archive.go:124 Archive compression detected: tar.gz
core@localhost ~ $ docker version
Client version: 0.6.4
Go version (client): go1.1.2
Git commit (client): e8da766
Server version: 0.6.4
Git commit (server): e8da766
Go version (server): go1.1.2
Last stable version: 0.6.4

I'm running CoreOS under vagrant.

jpetazzo commented 10 years ago

Which version of tar are you using? (I wonder if this might be an issue related to CoreOS?)

tgummerer commented 10 years ago
core@localhost ~ $ tar --version
tar (GNU tar) 1.26
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.

Oh and I forgot to mention, it starts downloading stuff, and then the error pops up. Mostly it stops when only a few megabytes (1-5) were downloaded, but other times (less common) it manages to download 50-70 MB.

jpetazzo commented 10 years ago

Ah, in that case, I'm willing to place on bet on odd network conditions :-) How is the machine connected to the network? Since you mentioned CoreOS under vagrant, I suppose that this is running on your local machine. Can you connect to a different network and see if it behaves the same? Are you able to download big-ish files? (e.g. an Ubuntu ISO image)

On Wed, Oct 30, 2013 at 8:29 AM, Thomas Gummerer notifications@github.comwrote:

core@localhost ~ $ tar --version tar (GNU tar) 1.26 Copyright (C) 2011 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.

Oh and I forgot to mention, it starts downloading stuff, and then the error pops up. Mostly it stops when only a few megabytes (1-5) were downloaded, but other times (less common) it manages to download 50-70 MB.

— Reply to this email directly or view it on GitHubhttps://github.com/dotcloud/docker/issues/2461#issuecomment-27399522 .

tgummerer commented 10 years ago

Yeah you're right, the problem was more the wifi card than the actual network it seems, but that comes down to the same thing ;-) Sorry for the noise. Downloading big files is possible, but only because wget handles read error and continues to download afterwards. Might that be something worth implementing in docker?

tavisrudd commented 10 years ago

I've run into this on multiple machines/networks when downloading tianon/gentoo. It fails the first time then succeeds on second run. Most recently was on Joyent, who have a fairly reliable network. "1c8fbfa2ee2d: Error pulling image (stage3-20130516) from tianon/gentoo, exit status 2: tar: Unexpected EOF in archive"

jpetazzo commented 10 years ago

I'm reopening.

@samalba do you know if there is an easy way to bypass the CDN (to check if that might be the CDN's fault)?

tavisrudd commented 10 years ago

Another data point: I ran into this again the first time I tried to pull from a digitalocean vm. Re-running it immediately resolved the issue as it had previously.

gmbuell commented 10 years ago

I'm seeing the same problem on a vagrant virtualbox image. Fails the first time, succeeds the second.

jvermillard commented 10 years ago

Same problem here, 3 tries before success:

core@localhost ~ $ docker pull centos                                                                                                                                                                                                                                                                                        
Pulling repository centos
539c0211cd76: Error pulling image (latest) from centos, endpoint: https://cdn-registry-1.docker.io/v1/, exit status 2: tar: Ignoring unknown extended header keyword `SCHILY.fflags'
tar: Ignoring unknown extended header keyword `SCHILY.fflags'

gzip: stdin: unexpected end of file
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
539c0211cd76: Error pulling image (latest) from centos, exit status 2: tar: Ignoring unknown extended header keyword `SCHILY.fflags'
tar: Ignoring unknown extended header keyword `SCHILY.fflags'

gzip: stdin: unexpected end of file
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
2013/11/21 10:33:33 Server error: 404 trying to fetch remote history for centos
core@localhost ~ $ docker pull centos                                                                                                                                                                                                                                                                                        
Pulling repository centos
539c0211cd76: Error pulling image (latest) from centos, endpoint: https://cdn-registry-1.docker.io/v1/, exit status 2: tar: Ignoring unknown extended header keyword `SCHILY.fflags'
tar: Ignoring unknown extended header keyword `SCHILY.fflags'

gzip: stdin: unexpected end of file
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
539c0211cd76: Error pulling image (latest) from centos, exit status 2: tar: Ignoring unknown extended header keyword `SCHILY.fflags'
tar: Ignoring unknown extended header keyword `SCHILY.fflags'

gzip: stdin: unexpected end of file
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
2013/11/21 11:06:38 Server error: 404 trying to fetch remote history for centos
core@localhost ~ $ docker pull centos                                                                                                                                                                                                                                                                                        
Pulling repository centos
539c0211cd76: Download complete
samalba commented 10 years ago

Thanks for the data. Could you give some details on how long does it take when it fails? Does it fail right away or is there some kind of timeout?

jvermillard commented 10 years ago

dunno exactly but looks like some kind of timeout when the download is stuck. For example I have a lot of trouble to download this image: kimh/oracledb (~1.3GB)

rogaha commented 10 years ago

Currently the cookie session lasts only one hour. If the downloading process takes more that one hour you should get the error 404 after that period of time.

@samalba, do you think that we could increase the expiration period?

tianon commented 10 years ago

Is there a particular reason why we can't just use a session cookie?

samalba commented 10 years ago

@tianon do you mean a cookie without expires? If yes, I we can.

tianon commented 10 years ago

Yes, that's exactly what I mean. Then we can take as long as we need to. :)

justcookin commented 10 years ago

Kept on getting this on several pull requests:

$sudo docker pull  inokappa/squeeze-basic 
Pulling repository inokappa/squeeze-basic
050462b16e32: Error pulling image (latest) from inokappa/squeeze-basic, endpoint: https://cdn-registry-    1.docker.io/v1/, exit status 2: 
gzip: stdin: unexpected end of file
tar: Unexpected EOF in archive
050462b16e32: Error pulling image (latest) from inokappa/squeeze-basic, exit status 2: Error is not recoverable: exiting now
gzip: stdin: unexpected end of file
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
2013/12/06 15:23:02 Server error: 404 trying to fetch remote history for inokappa/squeeze-basic

Had to run it 2 times for this particular repository, second time it worked fine. Running docker on an Amazon EC2 ubuntu instance.

samalba commented 10 years ago

We pushed a fix candidate on prod this week on the public Registry. Can anyone update the status on this? The problem is supposed to be solved.

Reference: https://github.com/dotcloud/docker-registry/commit/e5d96a1178ea45b7923d08a05a86be7c5d716085

rogaha commented 10 years ago

I was trying to replicate that problem and I couldn't do it any more. Hopefully it should be fixed with that fix candidate.

albertogg commented 10 years ago

I know this has been discussed several times... I'm always getting stuck while downloading the "ubuntu" image. My problem is that it keeps throwing the Unexpected EOF in archive error while been at 3.342 MB/94.86 MB 52m1s this has happened every single time for the past 6 tries. I'm running Docker within Vagrant within VirtualBox, with a bridged network.

$ docker pull ubuntu
Pulling repository ubuntu
8dbd9e392a96: Error pulling image (precise) from ubuntu, endpoint: https://cdn-registry-1.docker.io/v1/, exit status 2: tar: Ignoring unknown extended header keyword `SCHILY.fflags'
xz: (stdin): Unexpected end of input                                          ] 3.342 MB/94.86 MB 52m1s
8dbd9e392a96: Error pulling image (precise) from ubuntu, exit status 2: tar: Ignoring unknown extended header keyword `SCHILY.fflags'ed EOF in archive
xz: (stdin): Unexpected end of inputng now
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now

The software versions.

$ docker version
Client version: 0.7.1
Go version (client): go1.2
Git commit (client): 88df052
Server version: 0.7.1
Git commit (server): 88df052
Go version (server): go1.2
Last stable version: 0.7.1

$ tar --version
tar (GNU tar) 1.26

$ vagrant -v
Vagrant 1.4.0

VirtualBox 4.3.4 with its guest additions.

Its really weird that it always breaks in the same part... also I'm not getting the 404 error, I have to interrupt the execution and and kill the docker process to be availed to retry the docker pull ubuntu.

Update: now I'm getting this.

$ docker pull ubuntu
Pulling repository ubuntu
8dbd9e392a96: Downloading [====>                                              ] 5.014 MB/58.34 MB 29m12s
b750fe79269d: Error pulling image (quantal) from ubuntu, endpoint: https://cdn-registry-1.docker.io/v1/, exit status 2:
gzip: stdin: unexpected end of fileendent layers
tar: Unexpected EOF in archive
b750fe79269d: Error pulling image (quantal) from ubuntu, exit status 2:
gzip: stdin: unexpected end of fileing now
8dbd9e392a96: Error pulling image (precise) from ubuntu, endpoint: https://cdn-registry-1.docker.io/v1/, exit status 2: tar: Ignoring unknown extended header keyword `SCHILY.fflags'
tar: Ignoring unknown extended header keyword `SCHILY.fflags'
tar: Ignoring unknown extended header keyword `SCHILY.fflags'
xz: (stdin): Unexpected end of input
8dbd9e392a96: Error pulling image (precise) from ubuntu, exit status 2: tar: Ignoring unknown extended header keyword `SCHILY.fflags'ed EOF in archive
tar: Ignoring unknown extended header keyword `SCHILY.fflags'
tar: Ignoring unknown extended header keyword `SCHILY.fflags'
xz: (stdin): Unexpected end of input
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
2013/12/13 19:49:33 Could not find repository on any of the indexed registries.
mait commented 10 years ago
➜ ~ sudo docker pull coreos/etcd
Pulling repository coreos/etcd
ff181fe39317: Error pulling image (latest) from coreos/etcd, endpoint: https://cdn-registry-1.docker.io/v1/, exit status 2: tar: Ignoring unknown extended header keyword `SCHILY.fflags'ading dependent layers
tar: Ignoring unknown extended header keyword `SCHILY.fflags'
tar: Ignoring unknown extended header keyword `SCHILY.fflags'
tar: Ignoring unknown extended header keyword `SCHILY.fflags'
tar: Ignoring unknown extended header keyword `SCHILY.fflags'
tar: Ignoring unknown extended header keyword `SCHILY.fflags'
tar: Ignoring unknown extended header keyword `SCHILY.fflags'
tar: Ignoring unknown extended header keyword `SCHILY.fflags'
xz: (stdin): Unexpected end of input
tar: Unexpected EOF in archive
ff181fe39317: Error pulling image (latest) from coreos/etcd, exit status 2: tar: Ignoring unknown extended header keyword `SCHILY.fflags'
tar: Ignoring unknown extended header keyword `SCHILY.fflags'
tar: Ignoring unknown extended header keyword `SCHILY.fflags'
tar: Ignoring unknown extended header keyword `SCHILY.fflags'
tar: Ignoring unknown extended header keyword `SCHILY.fflags'
tar: Ignoring unknown extended header keyword `SCHILY.fflags'
tar: Ignoring unknown extended header keyword `SCHILY.fflags'
tar: Ignoring unknown extended header keyword `SCHILY.fflags'
xz: (stdin): Unexpected end of input
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
2013/12/25 17:34:43 Could not find repository on any of the indexed registries.

samsaffron/discourse, coreos/etcd failed.

busybox OK.

Now I'm trying ubuntu. It looks like working. In progress.

Uubuntu 13.10

Client version: 0.7.2
Go version (client): go1.2
Git commit (client): 28b162e
Server version: 0.7.2
Git commit (server): 28b162e
Go version (server): go1.2
Last stable version: 0.7.2

tar (GNU tar) 1.26
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.
mait commented 10 years ago

docker pull ubuntu started at 18:00. Now 22:50. Still 60MB/94MB in progress.

South Korea banned from CDN? I'm wondering why this is so slow.

albertogg commented 10 years ago

@mait it's stuck and it will not continue, that happens to me also... when it doesn't break with the tar: Unexpected EOF in archive

dinogun commented 10 years ago

$ sudo docker pull ubuntu 2014/01/13 12:47:43 POST /v1.8/images/create?fromImage=ubuntu&tag= Pulling repository ubuntu 8dbd9e392a96: Downloading [==========> ] 11.7 MB/58.34 MB 12m24s b750fe79269d: Error pulling image (quantal) from ubuntu, endpoint: https://cdn-registry-1.docker.io/v1/, exit status 2: tar: Ignoring unknown extended header keyword `SCHILY.fflags'

gzip: stdin: unexpected end of file tar: Unexpected EOF in archive tar: Unexpected EOF in archive tar: Error is not recoverable: exiting now b750fe79269d: Error pulling image (quantal) from ubuntu, exit status 2: tar: Ignoring unknown extended header keyword `SCHILY.fflags'

gzip: stdin: unexpected end of file tar: Unexpected EOF in archive 8dbd9e392a96: Download complete tar: Error is not recoverable: exiting now

2014/01/13 13:03:39 Could not find repository on any of the indexed registries.

This is from Bangalore, India

porterjamesj commented 10 years ago

I am also seeing this from inside of a private cloud:

$ docker pull chapmanb/bcbio-nextgen-vm
Pulling repository chapmanb/bcbio-nextgen-vm
2014/01/15 22:49:37 HTTP code: 404
ubuntu@docker-test:/usr/local/Cellar/samtools/0.1.19/share/man/man1$ sudo docker pull chapmanb/bcbio-nextgen-devel
Pulling repository chapmanb/bcbio-nextgen-devel
d6c738103f22: Error pulling image (latest) from chapmanb/bcbio-nextgen-devel, endpoint: https://cdn-registry-1.docker.io/v1/, exit status 2:
gzip: stdin: unexpected end of file
tar: Unexpected EOF in archivee
tar: Unexpected EOF in archivee
tar: Error is not recoverable: exiting nowlayers
d6c738103f22: Error pulling image (latest) from chapmanb/bcbio-nextgen-devel, exit status 2:
gzip: stdin: unexpected end of file
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now

2014/01/15 22:54:48 Could not find repository on any of the indexed registries.

and as others have reported; it works fine on the second try.

narkisr commented 10 years ago

I can confirm this happening also

samalba commented 10 years ago

I was able to reproduce a couple of times. It looks like while Docker is fetching layers from CloudFlare, the connection gets interrupted sometimes.

We're currently implementing bytes-range support on the Registry, so we'll be able to transparently retry on fail (and not have to restart from scratch).

I am assigning this to me, to coordinate.

tavisrudd commented 10 years ago

I'm still seeing this but I'm now seeing a different failure upon retrying:

# docker run -i -t -rm tianon/gentoo /bin/bash
Unable to find image 'tianon/gentoo' (tag: latest) locally
Pulling repository tianon/gentoo
17340a975f03: Download complete
1c8fbfa2ee2d: Download complete
7b4d1e067a9d: Error pulling image (stage3-20130627) from tianon/gentoo, Server error: Status 524 while fetching image layer (7b4d1e067a9de13d585df70a9696c7800cde0ad2f0afa37f28112f8211c8f2f4) 5df70a9696c7800cde0ad2f0afa37f28112f8211c8f2f4)
cca6e0292bd0: Download complete
2014/01/18 10:44:34 Could not find repository on any of the indexed registries.

Retry again and third time I'm lucky. This happens to me every time, regardless of which network I'm on, so I don't think it's anything related to my local network.

blue5tar commented 10 years ago

i have the same problem, i use vagrant, i pull busybox ok!

kevinw commented 10 years ago

I'm seeing this problem as well, with docker-osx (which is using docker 0.7.5, also the VM has tar 1.26).

zen0wu commented 10 years ago

Same problem here, it's obviously due to bad network connection. The pull stops after downloaded part of the data and says

Pulling repository daprlabs/archlinux-jdk
2573c8e8bd78: Error pulling image (latest) from daprlabs/archlinux-jdk, endpoint: https://cdn-registry-1.docker.io/v1/, exit status 2:
gzip: stdin: unexpected end of fileendent layers
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
2573c8e8bd78: Error pulling image (latest) from daprlabs/archlinux-jdk, exit status 2:
gzip: stdin: unexpected end of file
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
2014/02/02 04:34:20 Could not find repository on any of the indexed registries.

I think the ultimate solution to this is to allow download to resume from the last fail point rather than start over. As long as it can download some data, it eventually will succeed to download all of them, as long as every time it starts from where it's left over.

samalba commented 10 years ago

Correct, I added the bytes range support in docker-registry https://github.com/dotcloud/docker-registry/pull/221 especially for this resume.

Now we need to implement on the docker side (only if the registry advertises that it supports "Range"). If "Range" is not supported, docker would retry the request from scratch.

Any volunteer?

jvermillard commented 10 years ago

just took a look at the code, it's quite a tricky feature to write, the code is using ReadCloser everywhere. I think a good idea is to wrap the Http response stream and try a resume if the wrapped stream is producing timeout or closing unexpectedly.

Another way is to try to download the file in /tmp, try resuming until it's complete and return a ReadCloser on the downloaded file (which delete the file when closed) .

WDYT?

amaline commented 10 years ago

I am getting a similar problem between two virtualbox VM's on the same host using a private registry. Pushing to the registry was not a problem, but pulling gets between 4 and 50meg through the download and errors with exist status 2:

gzip: stdin: unexpected end of file tar: Unexpected EOF in archive tar: Unexpected EOF in archive tar: Error is not recoverable: exiting now 2014/02/05 13:20:56 Could not find repository on any of the indexed registries.

This is on a Fedora VM (3.12.9-301.fc20.x86_64) Docker version 0.7.2, build 28b162e/0.7.2 tar 1.26 gzip 1.6

UPDATE: this problem went away when I moved the VM's from a private network to a public network. So maybe like it has something to do with going through two NATS (vbox and docker)?

kentlangley commented 10 years ago

Not sure if it's helpful to you but in my case, when I ran into a lot of these same issues this evening it was because I was using the docker 0.8.0 on OSX via boot2docker / virtualbox and the init script had failed to create the 40GB drive so I quickly ran out of disk space on my virtualbox VM. Once I fixed that issue all was well... In other words, my host OS ran out of disk space and on the surface it looked like the Docker.IO CDN was wigging out..

merriam commented 10 years ago

I ran into this today as well, using 0.8 on OS X.

The VirtualBox partition lists 92% full, but the ~/.boot2docker/boot2docker.vmdk is under 2GB of its 40GB default size.

Here is a (longish) raw transcript, as I can never tell what matters in an unreproducible bug.

[*master] ~/p/techtree (12515)$ docker build --tag="node" node_docker
Uploading context 3.072 kB
Uploading context 
Step 0 : FROM ubuntu
 ---> 9cd978db300e
Step 1 : MAINTAINER Charles Merriam 
 ---> Running in e489ee266766
 ---> a05c471c9b98
Step 2 : sed 's/main$/main universe/' -i /etc/apt/sources.list
# Skipping unknown instruction SED
Step 3 : run apt-get update
 ---> Running in d32e8b1aeace
Ign http://archive.ubuntu.com precise InRelease
Ign http://archive.ubuntu.com precise-updates InRelease
Ign http://archive.ubuntu.com precise-security InRelease
Hit http://archive.ubuntu.com precise Release.gpg
Get:1 http://archive.ubuntu.com precise-updates Release.gpg [198 B]
Get:2 http://archive.ubuntu.com precise-security Release.gpg [198 B]
Hit http://archive.ubuntu.com precise Release
Get:3 http://archive.ubuntu.com precise-updates Release [49.6 kB]
Get:4 http://archive.ubuntu.com precise-security Release [49.6 kB]
Hit http://archive.ubuntu.com precise/main amd64 Packages
Hit http://archive.ubuntu.com precise/universe amd64 Packages
Hit http://archive.ubuntu.com precise/main i386 Packages
Hit http://archive.ubuntu.com precise/universe i386 Packages
Get:5 http://archive.ubuntu.com precise-updates/main amd64 Packages [747 kB]
Get:6 http://archive.ubuntu.com precise-updates/universe amd64 Packages [235 kB]
Get:7 http://archive.ubuntu.com precise-updates/main i386 Packages [770 kB]
2014/02/11 00:39:40 unexpected EOF
[*master] ~/p/techtree (12516)$ docker images
2014/02/11 00:40:24 Can't connect to docker daemon. Is 'docker -d' running on this host?
[*master] ~/p/techtree (12517)$ boot2docker up
bash: boot2docker: command not found
[*master] ~/p/techtree (12518)$ bin/boot2docker up
[2014-02-11 00:43:17] Starting boot2docker-vm...
[2014-02-11 00:43:28] Started.
[*master] ~/p/techtree (12519)$ 
[*master] ~/p/techtree (12519)$ docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             VIRTUAL SIZE
                            a05c471c9b98        12 hours ago        204.4 MB
ubuntu              13.10               9f676bd305a4        7 days ago          178 MB
ubuntu              saucy               9f676bd305a4        7 days ago          178 MB
ubuntu              raring              eb601b8965b8        7 days ago          166.5 MB
ubuntu              13.04               eb601b8965b8        7 days ago          166.5 MB
ubuntu              12.10               5ac751e8d623        7 days ago          161 MB
ubuntu              quantal             5ac751e8d623        7 days ago          161 MB
ubuntu              10.04               9cc9ea5ea540        7 days ago          180.8 MB
ubuntu              lucid               9cc9ea5ea540        7 days ago          180.8 MB
                    ubuntu              12.04               9cd978db300e        7 days ago          204.4 MB
ubuntu              latest              9cd978db300e        7 days ago          204.4 MB
ubuntu              precise             9cd978db300e        7 days ago          204.4 MB
                            b750fe79269d        10 months ago       175.3 MB
[*master] ~/p/techtree (12520)$ bin/boot2docker ssh
Warning: Permanently added '[localhost]:2022' (RSA) to the list of known hosts.
docker@localhost's password: 
Connection closed by 127.0.0.1
[*master] ~/p/techtree (12521)$ bin/boot2docker ssh
Warning: Permanently added '[localhost]:2022' (RSA) to the list of known hosts.
docker@localhost's password: 
                        ##        .
                  ## ## ##       ==
               ## ## ## ##      ===
           /""""""""""""""""\___/ ===
      ~~~ {~~ ~~~~ ~~~ ~~~~ ~~ ~ /  ===- ~~~
           \______ o          __/
             \    \        __/
              \____\______/
 _                 _   ____     _            _
| |__   ___   ___ | |_|___ \ __| | ___   ___| | _____ _ __
| '_ \ / _ \ / _ \| __| __) / _` |/ _ \ / __| |/ / _ \ '__|
| |_) | (_) | (_) | |_ / __/ (_| | (_) | (__|   <  __/ |
|_.__/ \___/ \___/ \__|_____\__,_|\___/ \___|_|\_\___|_|
boot2docker: 0.5.4
docker@boot2docker:~$ df
Filesystem                Size      Used Available Use% Mounted on
rootfs                  900.6M    117.3M    783.3M  13% /
tmpfs                   500.3M     16.0K    500.3M   0% /dev/shm
/dev/sda1                38.3G      1.4G     35.0G   4% /mnt/sda1
none                     38.3G      1.4G     35.0G   4% /mnt/sda1/var/lib/docker/aufs/mnt/e48
9ee266766b9167190e0cffc765a6059306fa1f93aa488e890605e026cc2a7                               
docker@boot2docker:~$ 
docker@boot2docker:~$ 
docker@boot2docker:~$ docker run ubuntu date
Mon Feb 10 20:39:36 UTC 2014
docker@boot2docker:~$ 
docker@boot2docker:~$ exit
Connection to localhost closed.
[*master] ~/p/techtree (12521)$ docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             VIRTUAL SIZE
                            a05c471c9b98        12 hours ago        204.4 MB
ubuntu              13.10               9f676bd305a4        7 days ago          178 MB
ubuntu              saucy               9f676bd305a4        7 days ago          178 MB
ubuntu              raring              eb601b8965b8        7 days ago          166.5 MB
ubuntu              13.04               eb601b8965b8        7 days ago          166.5 MB
ubuntu              12.10               5ac751e8d623        7 days ago          161 MB
ubuntu              quantal             5ac751e8d623        7 days ago          161 MB
ubuntu              10.04               9cc9ea5ea540        7 days ago          180.8 MB
ubuntu              lucid               9cc9ea5ea540        7 days ago          180.8 MB
ubuntu              12.04               9cd978db300e        7 days ago          204.4 MB
ubuntu              latest              9cd978db300e        7 days ago          204.4 MB
ubuntu              precise             9cd978db300e        7 days ago          204.4 MB
                            b750fe79269d        10 months ago       175.3 MB
[*master] ~/p/techtree (12522)$ docker run ubuntu date
Mon Feb 10 20:39:55 UTC 2014
[*master] ~/p/techtree (12523)$ docker build --tag="node" node_docker
Uploading context 3.072 kB
Uploading context 
Step 0 : FROM ubuntu
 ---> 9cd978db300e
Step 1 : MAINTAINER Charles Merriam 
 ---> Using cache
 ---> a05c471c9b98
Step 2 : sed 's/main$/main universe/' -i /etc/apt/sources.list
# Skipping unknown instruction SED
Step 3 : run apt-get update
 ---> Running in 0316d042ab0d
Ign http://archive.ubuntu.com precise InRelease
Ign http://archive.ubuntu.com precise-updates InRelease
Ign http://archive.ubuntu.com precise-security InRelease
Hit http://archive.ubuntu.com precise Release.gpg
Get:1 http://archive.ubuntu.com precise-updates Release.gpg [198 B]
Get:2 http://archive.ubuntu.com precise-security Release.gpg [198 B]
Hit http://archive.ubuntu.com precise Release
Get:3 http://archive.ubuntu.com precise-updates Release [49.6 kB]
Get:4 http://archive.ubuntu.com precise-security Release [49.6 kB]
Hit http://archive.ubuntu.com precise/main amd64 Packages
Hit http://archive.ubuntu.com precise/universe amd64 Packages
Hit http://archive.ubuntu.com precise/main i386 Packages
Hit http://archive.ubuntu.com precise/universe i386 Packages
Get:5 http://archive.ubuntu.com precise-updates/main amd64 Packages [747 kB]
Get:6 http://archive.ubuntu.com precise-updates/universe amd64 Packages [235 kB]
Get:7 http://archive.ubuntu.com precise-updates/main i386 Packages [770 kB]
Get:8 http://archive.ubuntu.com precise-updates/universe i386 Packages [241 kB]
Get:9 http://archive.ubuntu.com precise-security/main amd64 Packages [357 kB]
Get:10 http://archive.ubuntu.com precise-security/universe amd64 Packages [90.7 kB]
Get:11 http://archive.ubuntu.com precise-security/main i386 Packages [378 kB]
Get:12 http://archive.ubuntu.com precise-security/universe i386 Packages [95.0 kB]
Fetched 3014 kB in 5s (570 kB/s)
 ---> 7f9f5b7be4c1
Step 4 : run apt-get upgrade -y
 ---> Running in 4d92dd5679a0
The following packages will be upgraded:
  apt apt-utils base-files bash busybox-initramfs coreutils dmsetup dpkg gnupg
  gpgv ifupdown initramfs-tools initramfs-tools-bin initscripts iproute
  isc-dhcp-client isc-dhcp-common libapt-inst1.4 libapt-pkg4.12 libc-bin libc6
  libdbus-1-3 libdevmapper1.02.1 libdrm-intel1 libdrm-nouveau1a libdrm-radeon1
  libdrm2 libexpat1 libglib2.0-0 libnih-dbus1 libnih1 libpciaccess0
  libplymouth2 libsqlite3-0 libssl1.0.0 libudev0 login lsb-base lsb-release
  mountall multiarch-support ntpdate passwd perl-base plymouth procps python
  python-minimal python2.7 python2.7-minimal resolvconf rsyslog sudo sysv-rc
  sysvinit-utils tzdata ubuntu-keyring ubuntu-minimal udev upstart vim-common
  vim-tiny xkb-data
63 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 29.5 MB of archives.
After this operation, 32.8 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu/ precise-updates/main base-files amd64 6.5ubuntu6.7 [6
1.0 kB]                                                                                     
Get:2 http://archive.ubuntu.com/ubuntu/ precise-updates/main bash amd64 4.2-2ubuntu2.1 [641 k
B]                                                                                          
Get:3 http://archive.ubuntu.com/ubuntu/ precise-updates/main dpkg amd64 1.16.1.2ubuntu7.2 [18
30 kB]                                                                                      
Get:4 http://archive.ubuntu.com/ubuntu/ precise-updates/main coreutils amd64 8.13-3ubuntu3.2 
[2222 kB]                                                                                   
Get:5 http://archive.ubuntu.com/ubuntu/ precise-updates/main login amd64 1:4.1.4.2+svn3283-3u
buntu5.1 [291 kB]                                                                           
Get:6 http://archive.ubuntu.com/ubuntu/ precise-updates/main perl-base amd64 5.14.2-6ubuntu2.
4 [1513 kB]                                                                                 
Get:7 http://archive.ubuntu.com/ubuntu/ precise-updates/main sysvinit-utils amd64 2.88dsf-13.
10ubuntu11.1 [60.2 kB]                                                                      
Get:8 http://archive.ubuntu.com/ubuntu/ precise-updates/main sysv-rc all 2.88dsf-13.10ubuntu1
1.1 [44.6 kB]                                                                               
Get:9 http://archive.ubuntu.com/ubuntu/ precise-updates/main libdbus-1-3 amd64 1.4.18-1ubuntu
1.4 [145 kB]                                                                                
Get:10 http://archive.ubuntu.com/ubuntu/ precise-updates/main libdrm2 amd64 2.4.46-1ubuntu0.0
.0.1 [26.2 kB]                                                                              
Get:11 http://archive.ubuntu.com/ubuntu/ precise-updates/main libpciaccess0 amd64 0.12.902-1u
buntu0.2 [20.8 kB]                                                                          
Get:12 http://archive.ubuntu.com/ubuntu/ precise-updates/main libdrm-intel1 amd64 2.4.46-1ubu
ntu0.0.0.1 [64.6 kB]                                                                        
Get:13 http://archive.ubuntu.com/ubuntu/ precise-updates/main libdrm-nouveau1a amd64 2.4.46-1
ubuntu0.0.0.1 [14.0 kB]                                                                     
Get:14 http://archive.ubuntu.com/ubuntu/ precise-updates/main libdrm-radeon1 amd64 2.4.46-1ub
untu0.0.0.1 [26.1 kB]                                                                       
Get:15 http://archive.ubuntu.com/ubuntu/ precise-updates/main libudev0 amd64 175-0ubuntu9.4 [
28.6 kB]                                                                                    
Get:16 http://archive.ubuntu.com/ubuntu/ precise-updates/main libdevmapper1.02.1 amd64 2:1.02
.48-4ubuntu7.4 [68.1 kB]                                                                    
Get:17 http://archive.ubuntu.com/ubuntu/ precise-updates/main initramfs-tools all 0.99ubuntu1
3.4 [49.2 kB]                                                                               
Get:18 http://archive.ubuntu.com/ubuntu/ precise-updates/main initramfs-tools-bin amd64 0.99u
buntu13.4 [9868 B]                                                                          
Get:19 http://archive.ubuntu.com/ubuntu/ precise-updates/main busybox-initramfs amd64 1:1.18.
5-1ubuntu4.1 [183 kB]                                                                       
Get:20 http://archive.ubuntu.com/ubuntu/ precise-updates/main dmsetup amd64 2:1.02.48-4ubuntu
7.4 [37.4 kB]                                                                               
Get:21 http://archive.ubuntu.com/ubuntu/ precise-updates/main libglib2.0-0 amd64 2.32.4-0ubun
tu1 [1200 kB]                                                                               
Get:22 http://archive.ubuntu.com/ubuntu/ precise-updates/main lsb-base all 4.0-0ubuntu20.3 [1
0.5 kB]                                                                                     
Get:23 http://archive.ubuntu.com/ubuntu/ precise-updates/main procps amd64 1:3.2.8-11ubuntu6.
3 [235 kB]                                                                                  
Get:24 http://archive.ubuntu.com/ubuntu/ precise-updates/main plymouth amd64 0.8.2-2ubuntu31.
1 [123 kB]                                                                                  
Get:25 http://archive.ubuntu.com/ubuntu/ precise-updates/main libplymouth2 amd64 0.8.2-2ubunt
u31.1 [92.0 kB]                                                                             
Get:26 http://archive.ubuntu.com/ubuntu/ precise-updates/main mountall amd64 2.36.4 [67.8 kB]
Get:27 http://archive.ubuntu.com/ubuntu/ precise-updates/main initscripts amd64 2.88dsf-13.10
ubuntu11.1 [28.1 kB]                                                                        
Get:28 http://archive.ubuntu.com/ubuntu/ precise-updates/main udev amd64 175-0ubuntu9.4 [314 
kB]                                                                                         
Get:29 http://archive.ubuntu.com/ubuntu/ precise-updates/main libnih-dbus1 amd64 1.0.3-4ubunt
u9.1 [16.0 kB]                                                                              
Get:30 http://archive.ubuntu.com/ubuntu/ precise-updates/main libnih1 amd64 1.0.3-4ubuntu9.1 
[54.8 kB]                                                                                   
Get:31 http://archive.ubuntu.com/ubuntu/ precise-updates/main passwd amd64 1:4.1.4.2+svn3283-
3ubuntu5.1 [959 kB]                                                                         
Get:32 http://archive.ubuntu.com/ubuntu/ precise-updates/main iproute amd64 20111117-1ubuntu2
.1 [442 kB]                                                                                 
Get:33 http://archive.ubuntu.com/ubuntu/ precise-updates/main ifupdown amd64 0.7~beta2ubuntu1
0 [49.2 kB]                                                                                 
Get:34 http://archive.ubuntu.com/ubuntu/ precise-updates/main upstart amd64 1.5-0ubuntu7.2 [3
12 kB]                                                                                      
Get:35 http://archive.ubuntu.com/ubuntu/ precise-updates/main tzdata all 2013g-0ubuntu0.12.04
 [471 kB]                                                                                   
Get:36 http://archive.ubuntu.com/ubuntu/ precise-updates/main libc-bin amd64 2.15-0ubuntu10.5
 [1182 kB]                                                                                  
Get:37 http://archive.ubuntu.com/ubuntu/ precise-updates/main libc6 amd64 2.15-0ubuntu10.5 [4
654 kB]                                                                                     
Get:38 http://archive.ubuntu.com/ubuntu/ precise-updates/main libssl1.0.0 amd64 1.0.1-4ubuntu
5.11 [1050 kB]                                                                              
Get:39 http://archive.ubuntu.com/ubuntu/ precise-updates/main python2.7 amd64 2.7.3-0ubuntu3.
4 [2674 kB]                                                                                 
Get:40 http://archive.ubuntu.com/ubuntu/ precise-updates/main python2.7-minimal amd64 2.7.3-0
ubuntu3.4 [1739 kB]                                                                         
Get:41 http://archive.ubuntu.com/ubuntu/ precise-updates/main libexpat1 amd64 2.0.1-7.2ubuntu
1.1 [131 kB]                                                                                
Get:42 http://archive.ubuntu.com/ubuntu/ precise-updates/main libsqlite3-0 amd64 3.7.9-2ubunt
u1.1 [349 kB]                                                                               
Get:43 http://archive.ubuntu.com/ubuntu/ precise-updates/main python-minimal amd64 2.7.3-0ubu
ntu2.2 [29.7 kB]                                                                            
Get:44 http://archive.ubuntu.com/ubuntu/ precise-updates/main python amd64 2.7.3-0ubuntu2.2 [
168 kB]                                                                                     
Get:45 http://archive.ubuntu.com/ubuntu/ precise-updates/main libapt-pkg4.12 amd64 0.8.16~exp
12ubuntu10.16 [936 kB]                                                                      
Get:46 http://archive.ubuntu.com/ubuntu/ precise-updates/main ubuntu-keyring all 2011.11.21.1
 [16.7 kB]                                                                                  
Get:47 http://archive.ubuntu.com/ubuntu/ precise-updates/main gpgv amd64 1.4.11-3ubuntu2.5 [1
85 kB]                                                                                      
Get:48 http://archive.ubuntu.com/ubuntu/ precise-updates/main gnupg amd64 1.4.11-3ubuntu2.5 [
806 kB]                                                                                     
Get:49 http://archive.ubuntu.com/ubuntu/ precise-updates/main apt amd64 0.8.16~exp12ubuntu10.
16 [1105 kB]                                                                                
Get:50 http://archive.ubuntu.com/ubuntu/ precise-updates/main libapt-inst1.4 amd64 0.8.16~exp
12ubuntu10.16 [102 kB]                                                                      
Get:51 http://archive.ubuntu.com/ubuntu/ precise-updates/main ntpdate amd64 1:4.2.6.p3+dfsg-1
ubuntu3.1 [65.1 kB]                                                                         
Get:52 http://archive.ubuntu.com/ubuntu/ precise-updates/main resolvconf all 1.63ubuntu16 [53
.5 kB]                                                                                      
Get:53 http://archive.ubuntu.com/ubuntu/ precise-updates/main multiarch-support amd64 2.15-0u
buntu10.5 [4480 B]                                                                          
Get:54 http://archive.ubuntu.com/ubuntu/ precise-updates/main apt-utils amd64 0.8.16~exp12ubu
ntu10.16 [192 kB]                                                                           
Get:55 http://archive.ubuntu.com/ubuntu/ precise-updates/main isc-dhcp-client amd64 4.1.ESV-R
4-0ubuntu5.9 [290 kB]                                                                       
Get:56 http://archive.ubuntu.com/ubuntu/ precise-updates/main isc-dhcp-common amd64 4.1.ESV-R
4-0ubuntu5.9 [347 kB]                                                                       
Get:57 http://archive.ubuntu.com/ubuntu/ precise-updates/main lsb-release all 4.0-0ubuntu20.3
 [11.0 kB]                                                                                  
Get:58 http://archive.ubuntu.com/ubuntu/ precise-updates/main rsyslog amd64 5.8.6-1ubuntu8.6 
[426 kB]                                                                                    
Get:59 http://archive.ubuntu.com/ubuntu/ precise-updates/main sudo amd64 1.8.3p1-1ubuntu3.4 [
288 kB]                                                                                     
Get:60 http://archive.ubuntu.com/ubuntu/ precise-updates/main vim-tiny amd64 2:7.3.429-2ubunt
u2.1 [411 kB]                                                                               
Get:61 http://archive.ubuntu.com/ubuntu/ precise-updates/main vim-common amd64 2:7.3.429-2ubu
ntu2.1 [86.5 kB]                                                                            
Get:62 http://archive.ubuntu.com/ubuntu/ precise-updates/main ubuntu-minimal amd64 1.267.1 [2
904 B]                                                                                      
Get:63 http://archive.ubuntu.com/ubuntu/ precise-updates/main xkb-data all 2.5-1ubuntu1.3 [47
4 kB]                                                                                       
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl
/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/
share/perl/5.14 /usr/local/lib/site_perl .) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm 
line 7, <> line 63.)                                                                        
debconf: falling back to frontend: Teletype
dpkg-preconfigure: unable to re-open stdin: 
Fetched 29.5 MB in 11s (2555 kB/s)
9737 files and directories currently installed.)
Preparing to replace base-files 6.5ubuntu6 (using .../base-files_6.5ubuntu6.7_amd64.deb) ...
Unpacking replacement base-files ...
Setting up base-files (6.5ubuntu6.7) ...
Installing new version of config file /etc/issue ...
Installing new version of config file /etc/issue.net ...
Installing new version of config file /etc/lsb-release ...
9738 files and directories currently installed.)
Preparing to replace bash 4.2-2ubuntu2 (using .../bash_4.2-2ubuntu2.1_amd64.deb) ...
Unpacking replacement bash ...
Setting up bash (4.2-2ubuntu2.1) ...
update-alternatives: using /usr/share/man/man7/bash-builtins.7.gz to provide /usr/share/man/m
an7/builtins.7.gz (builtins.7.gz) in auto mode.                                             
9738 files and directories currently installed.)
Preparing to replace dpkg 1.16.1.2ubuntu7 (using .../dpkg_1.16.1.2ubuntu7.2_amd64.deb) ...
Unpacking replacement dpkg ...
Setting up dpkg (1.16.1.2ubuntu7.2) ...
9739 files and directories currently installed.)
Preparing to replace coreutils 8.13-3ubuntu3 (using .../coreutils_8.13-3ubuntu3.2_amd64.deb) 
...                                                                                         
Unpacking replacement coreutils ...
Setting up coreutils (8.13-3ubuntu3.2) ...
9739 files and directories currently installed.)
Preparing to replace login 1:4.1.4.2+svn3283-3ubuntu5 (using .../login_1%3a4.1.4.2+svn3283-3u
buntu5.1_amd64.deb) ...                                                                     
Unpacking replacement login ...
Setting up login (1:4.1.4.2+svn3283-3ubuntu5.1) ...
9739 files and directories currently installed.)
Preparing to replace perl-base 5.14.2-6ubuntu2 (using .../perl-base_5.14.2-6ubuntu2.4_amd64.d
eb) ...                                                                                     
Unpacking replacement perl-base ...
Setting up perl-base (5.14.2-6ubuntu2.4) ...
9739 files and directories currently installed.)
Preparing to replace sysvinit-utils 2.88dsf-13.10ubuntu11 (using .../sysvinit-utils_2.88dsf-1
3.10ubuntu11.1_amd64.deb) ...                                                               
Unpacking replacement sysvinit-utils ...
Preparing to replace sysv-rc 2.88dsf-13.10ubuntu11 (using .../sysv-rc_2.88dsf-13.10ubuntu11.1
_all.deb) ...                                                                               
Unpacking replacement sysv-rc ...
Preparing to replace libdbus-1-3 1.4.18-1ubuntu1 (using .../libdbus-1-3_1.4.18-1ubuntu1.4_amd
64.deb) ...                                                                                 
Unpacking replacement libdbus-1-3 ...
Preparing to replace libdrm2 2.4.32-1ubuntu1 (using .../libdrm2_2.4.46-1ubuntu0.0.0.1_amd64.d
eb) ...                                                                                     
Unpacking replacement libdrm2 ...
Preparing to replace libpciaccess0 0.12.902-1 (using .../libpciaccess0_0.12.902-1ubuntu0.2_am
d64.deb) ...                                                                                
Unpacking replacement libpciaccess0 ...
Preparing to replace libdrm-intel1 2.4.32-1ubuntu1 (using .../libdrm-intel1_2.4.46-1ubuntu0.0
.0.1_amd64.deb) ...                                                                         
Unpacking replacement libdrm-intel1 ...
Preparing to replace libdrm-nouveau1a 2.4.32-1ubuntu1 (using .../libdrm-nouveau1a_2.4.46-1ubu
ntu0.0.0.1_amd64.deb) ...                                                                   
Unpacking replacement libdrm-nouveau1a ...
Preparing to replace libdrm-radeon1 2.4.32-1ubuntu1 (using .../libdrm-radeon1_2.4.46-1ubuntu0
.0.0.1_amd64.deb) ...                                                                       
Unpacking replacement libdrm-radeon1 ...
Preparing to replace libudev0 175-0ubuntu9 (using .../libudev0_175-0ubuntu9.4_amd64.deb) ...
Unpacking replacement libudev0 ...
Preparing to replace libdevmapper1.02.1 2:1.02.48-4ubuntu7 (using .../libdevmapper1.02.1_2%3a
1.02.48-4ubuntu7.4_amd64.deb) ...                                                           
Unpacking replacement libdevmapper1.02.1 ...
Preparing to replace initramfs-tools 0.99ubuntu13 (using .../initramfs-tools_0.99ubuntu13.4_a
ll.deb) ...                                                                                 
Unpacking replacement initramfs-tools ...
Preparing to replace initramfs-tools-bin 0.99ubuntu13 (using .../initramfs-tools-bin_0.99ubun
tu13.4_amd64.deb) ...                                                                       
Unpacking replacement initramfs-tools-bin ...
Preparing to replace busybox-initramfs 1:1.18.5-1ubuntu4 (using .../busybox-initramfs_1%3a1.1
8.5-1ubuntu4.1_amd64.deb) ...                                                               
Unpacking replacement busybox-initramfs ...
Preparing to replace dmsetup 2:1.02.48-4ubuntu7 (using .../dmsetup_2%3a1.02.48-4ubuntu7.4_amd
64.deb) ...                                                                                 
Unpacking replacement dmsetup ...
Preparing to replace libglib2.0-0 2.32.1-0ubuntu2 (using .../libglib2.0-0_2.32.4-0ubuntu1_amd
64.deb) ...                                                                                 
Unpacking replacement libglib2.0-0 ...
Preparing to replace lsb-base 4.0-0ubuntu20 (using .../lsb-base_4.0-0ubuntu20.3_all.deb) ...
Unpacking replacement lsb-base ...
Processing triggers for ureadahead ...
Setting up lsb-base (4.0-0ubuntu20.3) ...
9739 files and directories currently installed.)
Preparing to replace procps 1:3.2.8-11ubuntu6 (using .../procps_1%3a3.2.8-11ubuntu6.3_amd64.d
eb) ...                                                                                     
invoke-rc.d: policy-rc.d denied execution of stop.
Unpacking replacement procps ...
Preparing to replace plymouth 0.8.2-2ubuntu30 (using .../plymouth_0.8.2-2ubuntu31.1_amd64.deb
) ...                                                                                       
Unpacking replacement plymouth ...
Preparing to replace libplymouth2 0.8.2-2ubuntu30 (using .../libplymouth2_0.8.2-2ubuntu31.1_a
md64.deb) ...                                                                               
Unpacking replacement libplymouth2 ...
Preparing to replace mountall 2.36 (using .../mountall_2.36.4_amd64.deb) ...
Unpacking replacement mountall ...
Preparing to replace initscripts 2.88dsf-13.10ubuntu11 (using .../initscripts_2.88dsf-13.10ub
untu11.1_amd64.deb) ...                                                                     
Unpacking replacement initscripts ...
Preparing to replace udev 175-0ubuntu9 (using .../udev_175-0ubuntu9.4_amd64.deb) ...
Adding 'diversion of /sbin/udevadm to /sbin/udevadm.upgrade by fake-udev'
Unpacking replacement udev ...
Preparing to replace libnih-dbus1 1.0.3-4ubuntu9 (using .../libnih-dbus1_1.0.3-4ubuntu9.1_amd
64.deb) ...                                                                                 
Unpacking replacement libnih-dbus1 ...
Preparing to replace libnih1 1.0.3-4ubuntu9 (using .../libnih1_1.0.3-4ubuntu9.1_amd64.deb) ..
.                                                                                           
Unpacking replacement libnih1 ...
Preparing to replace passwd 1:4.1.4.2+svn3283-3ubuntu5 (using .../passwd_1%3a4.1.4.2+svn3283-
3ubuntu5.1_amd64.deb) ...                                                                   
Unpacking replacement passwd ...
Processing triggers for ureadahead ...
Setting up passwd (1:4.1.4.2+svn3283-3ubuntu5.1) ...
9751 files and directories currently installed.)
Preparing to replace iproute 20111117-1ubuntu2 (using .../iproute_20111117-1ubuntu2.1_amd64.d
eb) ...                                                                                     
Unpacking replacement iproute ...
Preparing to replace ifupdown 0.7~beta2ubuntu8 (using .../ifupdown_0.7~beta2ubuntu10_amd64.de
b) ...                                                                                      
Unpacking replacement ifupdown ...
Preparing to replace upstart 1.5-0ubuntu5 (using .../upstart_1.5-0ubuntu7.2_amd64.deb) ...
Unpacking replacement upstart ...
Preparing to replace tzdata 2012b-1 (using .../tzdata_2013g-0ubuntu0.12.04_all.deb) ...
Unpacking replacement tzdata ...
Processing triggers for ureadahead ...
Setting up tzdata (2013g-0ubuntu0.12.04) ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl
/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/
share/perl/5.14 /usr/local/lib/site_perl .) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm 
line 7.)                                                                                    
debconf: falling back to frontend: Teletype
Current default time zone: 'Etc/UTC'
Local time is now:      Mon Feb 10 20:40:29 UTC 2014.
Universal Time is now:  Mon Feb 10 20:40:29 UTC 2014.
Run 'dpkg-reconfigure tzdata' if you wish to change it.
9760 files and directories currently installed.)
Preparing to replace libc-bin 2.15-0ubuntu10 (using .../libc-bin_2.15-0ubuntu10.5_amd64.deb) 
...                                                                                         
Unpacking replacement libc-bin ...
Setting up libc-bin (2.15-0ubuntu10.5) ...
9760 files and directories currently installed.)
Preparing to replace libc6 2.15-0ubuntu10 (using .../libc6_2.15-0ubuntu10.5_amd64.deb) ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl
/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/
share/perl/5.14 /usr/local/lib/site_perl .) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm 
line 7.)                                                                                    
debconf: falling back to frontend: Teletype
Unpacking replacement libc6 ...
Setting up libc6 (2.15-0ubuntu10.5) ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl
/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/
share/perl/5.14 /usr/local/lib/site_perl .) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm 
line 7.)                                                                                    
debconf: falling back to frontend: Teletype
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
9760 files and directories currently installed.)
Preparing to replace libssl1.0.0 1.0.1-4ubuntu3 (using .../libssl1.0.0_1.0.1-4ubuntu5.11_amd6
4.deb) ...                                                                                  
Unpacking replacement libssl1.0.0 ...
Setting up libssl1.0.0 (1.0.1-4ubuntu5.11) ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl
/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/
share/perl/5.14 /usr/local/lib/site_perl .) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm 
line 7.)                                                                                    
debconf: falling back to frontend: Teletype
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
9760 files and directories currently installed.)
Preparing to replace python2.7 2.7.3-0ubuntu3 (using .../python2.7_2.7.3-0ubuntu3.4_amd64.deb
) ...                                                                                       
Unpacking replacement python2.7 ...
Preparing to replace python2.7-minimal 2.7.3-0ubuntu3 (using .../python2.7-minimal_2.7.3-0ubu
ntu3.4_amd64.deb) ...                                                                       
Unpacking replacement python2.7-minimal ...
Setting up python2.7-minimal (2.7.3-0ubuntu3.4) ...
9758 files and directories currently installed.)
Preparing to replace libexpat1 2.0.1-7.2ubuntu1 (using .../libexpat1_2.0.1-7.2ubuntu1.1_amd64
.deb) ...                                                                                   
Unpacking replacement libexpat1 ...
Preparing to replace libsqlite3-0 3.7.9-2ubuntu1 (using .../libsqlite3-0_3.7.9-2ubuntu1.1_amd
64.deb) ...                                                                                 
Unpacking replacement libsqlite3-0 ...
Preparing to replace python-minimal 2.7.3-0ubuntu2 (using .../python-minimal_2.7.3-0ubuntu2.2
_amd64.deb) ...                                                                             
Unpacking replacement python-minimal ...
Setting up python-minimal (2.7.3-0ubuntu2.2) ...
9758 files and directories currently installed.)
Preparing to replace python 2.7.3-0ubuntu2 (using .../python_2.7.3-0ubuntu2.2_amd64.deb) ...
Unpacking replacement python ...
Preparing to replace libapt-pkg4.12 0.8.16~exp12ubuntu10 (using .../libapt-pkg4.12_0.8.16~exp
12ubuntu10.16_amd64.deb) ...                                                                
Unpacking replacement libapt-pkg4.12 ...
Setting up libapt-pkg4.12 (0.8.16~exp12ubuntu10.16) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
9758 files and directories currently installed.)
Preparing to replace ubuntu-keyring 2011.11.21 (using .../ubuntu-keyring_2011.11.21.1_all.deb
) ...                                                                                       
Unpacking replacement ubuntu-keyring ...
Setting up ubuntu-keyring (2011.11.21.1) ...
gpg: key 437D05B5: "Ubuntu Archive Automatic Signing Key " not changed
gpg: key FBB75451: "Ubuntu CD Image Automatic Signing Key " not changed
gpg: key C0B21F32: public key "Ubuntu Archive Automatic Signing Key (2012) " imported                                                                              
key EFE21092: public key "Ubuntu CD Image Automatic Signing Key (2012) " 
imported                                                                                    
gpg: Total number processed: 4
gpg:               imported: 2  (RSA: 2)
gpg:              unchanged: 2
gpg: no ultimately trusted keys found
9758 files and directories currently installed.)
Preparing to replace gpgv 1.4.11-3ubuntu2 (using .../gpgv_1.4.11-3ubuntu2.5_amd64.deb) ...
Unpacking replacement gpgv ...
Setting up gpgv (1.4.11-3ubuntu2.5) ...
9758 files and directories currently installed.)
Preparing to replace gnupg 1.4.11-3ubuntu2 (using .../gnupg_1.4.11-3ubuntu2.5_amd64.deb) ...
Unpacking replacement gnupg ...
Setting up gnupg (1.4.11-3ubuntu2.5) ...
9758 files and directories currently installed.)
Preparing to replace apt 0.8.16~exp12ubuntu10 (using .../apt_0.8.16~exp12ubuntu10.16_amd64.de
b) ...                                                                                      
Unpacking replacement apt ...
Setting up apt (0.8.16~exp12ubuntu10.16) ...
Installing new version of config file /etc/apt/apt.conf.d/01autoremove ...
gpg: key 437D05B5: "Ubuntu Archive Automatic Signing Key " not changed
gpg: key FBB75451: "Ubuntu CD Image Automatic Signing Key " not changed
gpg: key C0B21F32: "Ubuntu Archive Automatic Signing Key (2012) " not c
hanged                                                                                      
gpg: key EFE21092: "Ubuntu CD Image Automatic Signing Key (2012) " not ch
anged                                                                                       
gpg: Total number processed: 4
gpg:              unchanged: 4
No packages found matching linux-image-[0-9]*.
9759 files and directories currently installed.)
Preparing to replace libapt-inst1.4 0.8.16~exp12ubuntu10 (using .../libapt-inst1.4_0.8.16~exp
12ubuntu10.16_amd64.deb) ...                                                                
Unpacking replacement libapt-inst1.4 ...
Preparing to replace ntpdate 1:4.2.6.p3+dfsg-1ubuntu3 (using .../ntpdate_1%3a4.2.6.p3+dfsg-1u
buntu3.1_amd64.deb) ...                                                                     
Unpacking replacement ntpdate ...
Setting up sysvinit-utils (2.88dsf-13.10ubuntu11.1) ...
Setting up sysv-rc (2.88dsf-13.10ubuntu11.1) ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl
/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/
share/perl/5.14 /usr/local/lib/site_perl .) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm 
line 7.)                                                                                    
debconf: falling back to frontend: Teletype
Setting up libdbus-1-3 (1.4.18-1ubuntu1.4) ...
Setting up libnih1 (1.0.3-4ubuntu9.1) ...
Setting up libnih-dbus1 (1.0.3-4ubuntu9.1) ...
Setting up libudev0 (175-0ubuntu9.4) ...
Setting up libglib2.0-0 (2.32.4-0ubuntu1) ...
No schema files found: doing nothing.
Setting up iproute (20111117-1ubuntu2.1) ...
Setting up initramfs-tools-bin (0.99ubuntu13.4) ...
Setting up busybox-initramfs (1:1.18.5-1ubuntu4.1) ...
Setting up libdrm2 (2.4.46-1ubuntu0.0.0.1) ...
Setting up libpciaccess0 (0.12.902-1ubuntu0.2) ...
Setting up libdrm-intel1 (2.4.46-1ubuntu0.0.0.1) ...
Setting up libdrm-nouveau1a (2.4.46-1ubuntu0.0.0.1) ...
Setting up libdrm-radeon1 (2.4.46-1ubuntu0.0.0.1) ...
Setting up libplymouth2 (0.8.2-2ubuntu31.1) ...
Setting up upstart (1.5-0ubuntu7.2) ...
Installing new version of config file /etc/logrotate.d/upstart ...
Setting up initscripts (2.88dsf-13.10ubuntu11.1) ...
mount: permission denied
dpkg: error processing initscripts (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of ifupdown:
 ifupdown depends on initscripts (>= 2.88dsf-13.3); however:
  Package initscripts is not configured yet.
dpkg: error processing ifupdown (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a prev
dpkg: dependency problems prevent configuration of procps:
 procps depends on initscripts; however:
  Package initscripts is not configured yet.
dpkg: error processing procps (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of udev:
 udev depends on procps; however:
  Package procps is not configured yet.
dpkg: error processing udev (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of plymouth:
 plymouth depends on udev (>= 166-0ubuntu4); however:
  Package udev is not configured yet.
dpkg: error processing plymouth (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of mountall:
 mountall depends on udev; however:
  Package udev is not configured yet.
 mountall depends on plymouth; however:
  Package plymouth is not configured yet.
dpkg: error processing mountall (--configure):
 dependency problems - leaving unconfigured
Processing triggers for libc-bin ...
dpkg: dependency problems prevent configuration of initramfs-tools:
 initramfs-tools depends on udev (>= 147~-5); however:
  Package udev is not configured yet.
dpkg: error processing initramfs-tools (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a prev
ious failure.                                                                               
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
ldconfig deferred processing now taking place
Errors were encountered while processing:
 initscripts
 ifupdown
 procps
 udev
 plymouth
 mountall
 initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)
2014/02/11 00:50:25 build: The command [/bin/sh -c apt-get upgrade -y] returned a non-zero co
de: 100                                                                                     
[*master] ~/p/techtree (12524)$

and

$ df -h
Filesystem                          Size   Used  Avail Capacity  iused    ifree %iused  Mounted on
/dev/disk1                         233Gi  112Gi  120Gi    49% 29450337 31537182   48%   /
devfs                              192Ki  192Ki    0Bi   100%      667        0  100%   /dev
map -hosts                           0Bi    0Bi    0Bi   100%        0        0  100%   /net
map auto_home                        0Bi    0Bi    0Bi   100%        0        0  100%   /home
localhost:/gDI-1GH07EIDtCp2AguA0e  233Gi  233Gi    0Bi   100%        0        0  100%   /Volumes/MobileBackups
/dev/disk2s2                       136Mi  125Mi   10Mi    93%    32098     2612   92%   /Volumes/VirtualBox

and

[*master] ~/p/techtree (12541)$ ls -lhR ~/.boot2docker/
total 3969664
-rw-r--r--  1 charlesmerriam  staff    27M Feb 10 09:08 boot2docker.iso
-rw-------  4 charlesmerriam  staff   1.9G Feb 11 01:15 boot2docker.vmdk
[*master] ~/p/techtree (12542)$
merriam commented 10 years ago

This seems be happening frequently. The simplest sequence is:

  1. Start a new boot2docker vm.
  2. Try to "docker run ubuntu date"
  3. Fail with "unexpected EOF"
  4. State is left in unusable state, because it is still listed as downloading (see https://github.com/dotcloud/docker/pull/3075).

Here is the error:

Start with boot2docker init

[2014-02-11 15:20:21] Creating VM boot2docker-vm
Virtual machine 'boot2docker-vm' is created and registered.
UUID: bf98b599-34c4-448a-bedf-d7608d2299e9
Settings file: '/Users/charlesmerriam/VirtualBox VMs/boot2docker-vm/boot2docker-vm.vbox'
[2014-02-11 15:20:21] Setting VM settings
[2014-02-11 15:20:21] Setting VM networking
[2014-02-11 15:20:21] Setting VM disks
[2014-02-11 15:20:21] Creating 40000 Meg hard drive...
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Disk image created. UUID: 04535682-c32c-45d2-85d0-3060677f48f8
Converting from raw image file="format-flag.txt" to file="format-flag.vmdk"...
Creating dynamic image with size 5242880 bytes (5MB)...
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Clone hard disk created in format 'VMDK'. UUID: 04535682-c32c-45d2-85d0-3060677f48f8
[2014-02-11 15:20:21] Done.
[2014-02-11 15:20:21] You can now type boot2docker up and wait for the VM to start.

and then boot2docker up

[2014-02-11 15:20:22] Starting boot2docker-vm...
[2014-02-11 15:20:43] Started.

with these docker versions:

Client version: 0.8.0
Go version (client): go1.2
Git commit (client): cc3a8c8
Server version: 0.8.0
Git commit (server): cc3a8c8
Go version (server): go1.2

and now we try to docker run ubuntu date

 Unable to find image 'ubuntu' (tag: latest) locally
Pulling repository ubuntu
5ac751e8d623: Pulling dependent layers
9cc9ea5ea540: Pulling dependent layers
9f676bd305a4: Downloading 51.78 MB/62.78 MB 2m23s
9cd978db300e: Pulling dependent layers
eb601b8965b8: Pulling dependent layers
511136ea3c5a: Download complete
1c7f181e78b9: Download complete
2014/02/11 15:32:57 unexpected EOF
$

which leaves us in a bad state for trying again)

$ docker run ubuntu date
Unable to find image 'ubuntu' (tag: latest) locally
Repository ubuntu already being pulled by another client. Waiting.
^C

The boot2docker info did not change before and after the error, but the state changed to 'Saved' after the second attempt. Sizes of the files are small:

$ ls -lahR ~/.boot2docker ~/Virt*
/Users/charlesmerriam/.boot2docker:
total 484352
drwxr-xr-x   4 charlesmerriam  staff   136B Feb 11 15:20 ./
drwxr-xr-x+ 84 charlesmerriam  staff   2.8K Feb 11 00:03 ../
-rw-r--r--   1 charlesmerriam  staff    27M Feb 10 09:08 boot2docker.iso
-rw-------   2 charlesmerriam  staff   210M Feb 11 15:48 boot2docker.vmdk
/Users/charlesmerriam/VirtualBox VMs:
total 16
drwx------   4 charlesmerriam  staff   136B Feb 11 15:20 ./
drwxr-xr-x+ 84 charlesmerriam  staff   2.8K Feb 11 00:03 ../
-rw-r--r--@  1 charlesmerriam  staff   6.0K Sep 12 17:59 .DS_Store
drwx------   6 charlesmerriam  staff   204B Feb 11 15:48 boot2docker-vm/
/Users/charlesmerriam/VirtualBox VMs/boot2docker-vm:
total 32
drwx------  6 charlesmerriam  staff   204B Feb 11 15:48 ./
drwx------  4 charlesmerriam  staff   136B Feb 11 15:20 ../
drwx------  3 charlesmerriam  staff   102B Feb 11 15:20 Logs/
drwx------  3 charlesmerriam  staff   102B Feb 11 15:48 Snapshots/
-rw-------  1 charlesmerriam  staff   7.1K Feb 11 15:48 boot2docker-vm.vbox
-rw-------  1 charlesmerriam  staff   7.0K Feb 11 15:48 boot2docker-vm.vbox-prev
/Users/charlesmerriam/VirtualBox VMs/boot2docker-vm/Logs:
total 168
drwx------  3 charlesmerriam  staff   102B Feb 11 15:20 ./
drwx------  6 charlesmerriam  staff   204B Feb 11 15:48 ../
-rw-------  1 charlesmerriam  staff    81K Feb 11 15:48 VBox.log
/Users/charlesmerriam/VirtualBox VMs/boot2docker-vm/Snapshots:
total 383928
drwx------  3 charlesmerriam  staff   102B Feb 11 15:48 ./
drwx------  6 charlesmerriam  staff   204B Feb 11 15:48 ../
-rw-------  1 charlesmerriam  staff   187M Feb 11 15:48 2014-02-11T23-48-36-130386000Z.sav

My docker images are a bit odd:

docker images -a
REPOSITORY          TAG                 IMAGE ID            CREATED             VIRTUAL SIZE
                            1c7f181e78b9        8 days ago          0 B
                            511136ea3c5a        8 months ago        0 B

So, er, no clue. Feels almost like an issue when VirtualBox expands its vmdk, but that's a WAG.

unclejack commented 10 years ago

I'm working on this issue.

vieux commented 10 years ago

@unclejack :+1:

sanemat commented 10 years ago

I still met same problem.

Env:
Virtualbox 4.3.4(lastest 4.3.8) on Mac os x
HostOS:
Ubuntu 13.10 64bit
$ docker -v
0.9.0

$ sudo docker pull ubuntu:13.10
Pulling repository ubuntu
9f676bd305a4: Downloading [==>                                                ]  3.17 MB/62.78 MB 37m48s
511136ea3c5a: Download complete 
1c7f181e78b9: Download complete

Too slow download and before complete, then I get unexpected EOF.

sanemat commented 10 years ago

In my case, this is my network problem. I don't solve this yet, but same request from digital ocean(at Singapore region) works fine.

sidorykp commented 10 years ago

Hello, I just got this error while performing the following command: docker pull paulczar/dockenstack The error was precisely "Error pulling image (latest) from paulczar/dockenstack, flate: read error at offset 287309814: unexpected EOF" When I executed "dmesg" then I saw this interesting entry in the output: UDP: bad checksum. From 91.189.73.1:53 to ... I use Ubuntu 13.10 64 bit. My wifi was not very stable when I got this error. And I was able to pull the image after a couple of attempts.

All in all it looks like an UDP issue.

unclejack commented 10 years ago

@sidorykp "UDP: bad checksum" has nothing to do with Docker and failing pulls.

This issue is being worked on.

michaelneale commented 10 years ago

Still having real problems with this - especially from AWS region in sydney. This happens much more often when I am pulling "obscure" repos - which the CDN is unlikely to have cached.

I suspect it is largely CDN related - if we could have a switch to bypass to confirm this - it would help with diagnosis.

In this case, it is clearly CDN with a new repo: f4dd0e5a1793: Error pulling image (latest) from numenta/nupic, Server error: Status 524 while fetching image layer (d269b78e57bfdf5be67f87e923a9fc7b0f0f2e05e9ce166bf5f67e05740da452) 7f87e923a9fc7b0f0f2e05e9ce166bf5f67e05740da452) d98ef3cdf75b: Download complete d269b78e57bf: Error pulling dependent layers 2014/04/03 20:49:53 Could not find repository on any of the indexed registries.

this is with 0.9.1

samalba commented 10 years ago

@michaelneale Here is a simple way to bypass the CDN for testing:

On the machine where your docker daemon is running, add this at the end of your /etc/hosts:

54.224.119.89 cdn-registry-1.docker.io

Restart your docker daemon.

Now you should bypass the CDN for every download. Let me know what you have.

bryanlarsen commented 10 years ago

I'm trying to pull bradrydzewski/base. I've tried 5 times now, and it's always failed at the 650MB mark. I'm definitely not hitting any sort of 1 hour limit. I tried bypassing the CDN, but that causes a consistent failure at the 140MB mark.

samalba commented 10 years ago

This means there is an issue with the image data itself. I'll check the data.

samalba commented 10 years ago

@bryanlarsen forgot to update you guys on this. I checked the data for both images and it looks fine on my end (at least on the cdn edge I am mapped to).

if you're still impacted, could you provide the output of a "traceroute cdn-registry-1.docker.io"?

michaelneale commented 10 years ago

When I see this it is usually on a new image in from an fairly remote server.

This along with the errors makes me think it is cdn and perhaps cdn configuration. When I spot it again (not easy to repro) I bypass the cdn and confirm.

On Saturday, April 12, 2014, Sam Alba notifications@github.com wrote:

@bryanlarsen https://github.com/bryanlarsen forgot to update you guys on this. I checked the data for both images and it looks fine on my end (at least on the cdn edge I am mapped to).

if you're still impacted, could you provide the output of a "traceroute cdn-registry-1.docker.io"?

Reply to this email directly or view it on GitHubhttps://github.com/dotcloud/docker/issues/2461#issuecomment-40267408 .

Michael D Neale home: www.michaelneale.net blog: michaelneale.blogspot.com

jpetazzo commented 10 years ago

When the problem happens, can you also run curl -i cdn-registry-1.docker.io/cdn-cgi/trace? It might also give useful informatio. (Specifically, if multiple persons report it, we might be able to spot a pattern!)

jcelliott commented 10 years ago

I think I'm experiencing the same issue. I've noticed that I can successfully pull a specific tag, for example docker pull ubuntu:13.10, but if I try to get the whole repository (docker pull ubuntu) it always fails.

Here's the output from curl -i cdn-registry-1.docker.io/cdn-cgi/trace (removed IP):

HTTP/1.1 200 OK
Server: cloudflare-nginx
Date: Mon, 14 Apr 2014 22:06:42 GMT
Content-Type: text/plain
Transfer-Encoding: chunked
Connection: keep-alive
Set-Cookie: __cfduid=d13d52fa43e5523d3bb4e94a7c8ab09801397513202181; expires=Mon, 23-Dec-2019 23:50:00 GMT; path=/; domain=.docker.io; HttpOnly
CF-RAY: 11b33649a3940707-SJC
Expires: Thu, 01 Jan 1970 00:00:01 GMT
Cache-Control: no-cache

fl=4f19
h=cdn-registry-1.docker.io
ip=00.00.00.00
ts=1397513202.181
visit_scheme=http
uag=curl/7.36.0
colo=SJC
spdy=off
0