Print a status message when pull command is executed

Using repo tag in the status message for better usability, as per review comments
Added documentation and Changed code to print Status after downloads are complete

Addresses #2404

Signed-off-by: Srini Brahmaroutu <srbrahma@us.ibm.com>
This commit is contained in:
Srini Brahmaroutu
2014-10-01 22:55:29 +00:00
parent 4c8b8861ec
commit ecff6303a3
4 changed files with 43 additions and 11 deletions
+8
View File
@@ -23,6 +23,8 @@ It is also possible to specify a non-default registry to pull from.
# EXAMPLES
# Pull a repository with multiple images
# Note that if the image is previously downloaded then the status would be
# 'Status: Image is up to date for fedora'
$ sudo docker pull fedora
Pulling repository fedora
@@ -31,6 +33,8 @@ It is also possible to specify a non-default registry to pull from.
511136ea3c5a: Download complete
73bd853d2ea5: Download complete
Status: Downloaded newer image for fedora
$ sudo docker images
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
fedora rawhide ad57ef8d78d7 5 days ago 359.3 MB
@@ -39,6 +43,8 @@ It is also possible to specify a non-default registry to pull from.
fedora latest 105182bb5e8b 5 days ago 372.7 MB
# Pull an image, manually specifying path to the registry and tag
# Note that if the image is previously downloaded then the status would be
# 'Status: Image is up to date for registry.hub.docker.com/fedora:20'
$ sudo docker pull registry.hub.docker.com/fedora:20
Pulling repository fedora
@@ -46,6 +52,8 @@ It is also possible to specify a non-default registry to pull from.
511136ea3c5a: Download complete
fd241224e9cf: Download complete
Status: Downloaded newer image for registry.hub.docker.com/fedora:20
$ sudo docker images
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
fedora 20 3f2fed40e4b0 4 days ago 372.7 MB
+2
View File
@@ -93,6 +93,8 @@ download the `centos` image.
ef52fb1fe610: Download complete
. . .
Status: Downloaded newer image for centos
We can see that each layer of the image has been pulled down and now we
can run a container from this image and we won't have to wait to
download the image.
+2
View File
@@ -67,6 +67,8 @@ Once you've found the image you want, you can download it with `docker pull <ima
511136ea3c5a: Download complete
7064731afe90: Download complete
Status: Downloaded newer image for centos
You now have an image from which you can run containers.
## Contributing to Docker Hub