-
Notifications
You must be signed in to change notification settings - Fork 18.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pull missing images on run. Addresses #31. #49
Conversation
chooper@chimay:~/projects/docker/bin$ ./docker images NAME ID CREATED PARENT chooper@chimay:~/projects/docker/bin$ ./docker run -a base echo "hello world" Downloading from http://s3.amazonaws.com/docker.io/images/base Unpacking to base ######################################################################## 100.0% base:e9cb4ad9173245ac hello world chooper@chimay:~/projects/docker/bin$ ./docker run -a base echo "hello world" hello world chooper@chimay:~/projects/docker/bin$ ./docker run -a nosuchimage echo "hello world" Downloading from http://s3.amazonaws.com/docker.io/images/nosuchimage Unpacking to nosuchimage ######################################################################## 100.0% Error: Error downloading image: nosuchimage chooper@chimay:~/projects/docker/bin$
Thanks for the contribution! You can use ioutil.Discard instead of os.Open("/dev/null") It's in package io/ioutil |
Also, how does it behave when you pin the image version?
|
…mdRun. Related to moby#31
The run fails because "dotcloud pull" fails:
I'll add better error checking for CmdRun and open a separate issue for CmdPull:
|
…and comments from moby#49
Don't merge this pull request yet. I just noticed that rev 8e0986c breaks the progress bar on "docker pull" |
This is ready for review |
I made those last improvements I wanted to make. I didn't remove "curl" from the requirements in the README because we might be telling people to download installer scripts that way. |
Conflicts: image/image.go server/server.go
Still fighting with unit tests, I'll ping you when this is ready for re-review/merge |
Unit tests passing, except for layers_test which appears to be broken in master as well. |
Merge master into 0.6.5-dm-plugin
Pull missing images on run. Addresses #31.