Signed-off-by: Sally O'Malley <somalley@redhat.com>
| ... | ... |
@@ -14,8 +14,9 @@ NAME[:TAG] | [REGISTRY_HOST[:REGISTRY_PORT]/]NAME[:TAG] |
| 14 | 14 |
|
| 15 | 15 |
This command pulls down an image or a repository from a registry. If |
| 16 | 16 |
there is more than one image for a repository (e.g., fedora) then all |
| 17 |
-images for that repository name are pulled down including any tags. |
|
| 18 |
- |
|
| 17 |
+images for that repository name can be pulled down including any tags |
|
| 18 |
+(see the option **-a** or **--all-tags**). |
|
| 19 |
+ |
|
| 19 | 20 |
If you do not specify a `REGISTRY_HOST`, the command uses Docker's public |
| 20 | 21 |
registry located at `registry-1.docker.io` by default. |
| 21 | 22 |
|
| ... | ... |
@@ -28,11 +29,11 @@ registry located at `registry-1.docker.io` by default. |
| 28 | 28 |
|
| 29 | 29 |
# EXAMPLE |
| 30 | 30 |
|
| 31 |
-# Pull a repository with multiple images |
|
| 32 |
-# Note that if the image is previously downloaded then the status would be |
|
| 33 |
-# 'Status: Image is up to date for fedora' |
|
| 31 |
+## Pull a repository with multiple images with the -a|--all-tags option set to true. |
|
| 32 |
+Note that if the image is previously downloaded then the status would be |
|
| 33 |
+`Status: Image is up to date for fedora`. |
|
| 34 | 34 |
|
| 35 |
- $ docker pull fedora |
|
| 35 |
+ $ docker pull --all-tags fedora |
|
| 36 | 36 |
Pulling repository fedora |
| 37 | 37 |
ad57ef8d78d7: Download complete |
| 38 | 38 |
105182bb5e8b: Download complete |
| ... | ... |
@@ -48,9 +49,24 @@ registry located at `registry-1.docker.io` by default. |
| 48 | 48 |
fedora heisenbug 105182bb5e8b 5 days ago 372.7 MB |
| 49 | 49 |
fedora latest 105182bb5e8b 5 days ago 372.7 MB |
| 50 | 50 |
|
| 51 |
-# Pull an image, manually specifying path to Docker's public registry and tag |
|
| 52 |
-# Note that if the image is previously downloaded then the status would be |
|
| 53 |
-# 'Status: Image is up to date for registry.hub.docker.com/fedora:20' |
|
| 51 |
+## Pull a repository with the -a|--all-tags option set to false (this is the default). |
|
| 52 |
+ |
|
| 53 |
+ $ docker pull debian |
|
| 54 |
+ Using default tag: latest |
|
| 55 |
+ latest: Pulling from library/debian |
|
| 56 |
+ 2c49f83e0b13: Pull complete |
|
| 57 |
+ 4a5e6db8c069: Pull complete |
|
| 58 |
+ |
|
| 59 |
+ Status: Downloaded newer image for debian:latest |
|
| 60 |
+ |
|
| 61 |
+ $ docker images |
|
| 62 |
+ REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE |
|
| 63 |
+ debian latest 4a5e6db8c069 5 days ago 125.1 MB |
|
| 64 |
+ |
|
| 65 |
+ |
|
| 66 |
+## Pull an image, manually specifying path to Docker's public registry and tag |
|
| 67 |
+Note that if the image is previously downloaded then the status would be |
|
| 68 |
+`Status: Image is up to date for registry.hub.docker.com/fedora:20` |
|
| 54 | 69 |
|
| 55 | 70 |
$ docker pull registry.hub.docker.com/fedora:20 |
| 56 | 71 |
Pulling repository fedora |
| ... | ... |
@@ -72,3 +88,4 @@ June 2014, updated by Sven Dowideit <SvenDowideit@home.org.au> |
| 72 | 72 |
August 2014, updated by Sven Dowideit <SvenDowideit@home.org.au> |
| 73 | 73 |
April 2015, updated by John Willis <john.willis@docker.com> |
| 74 | 74 |
April 2015, updated by Mary Anthony for v2 <mary@docker.com> |
| 75 |
+September 2015, updated by Sally O'Malley <somalley@redhat.com> |