Skip to content

Commit 8562c42

Browse files
committed
Merge pull request moby#16091 from sallyom/man-docker-pull
correct man docker-pull
2 parents e4f721e + 73fe42e commit 8562c42

File tree

1 file changed

+26
-9
lines changed

1 file changed

+26
-9
lines changed

man/docker-pull.1.md

Lines changed: 26 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ NAME[:TAG] | [REGISTRY_HOST[:REGISTRY_PORT]/]NAME[:TAG]
1414

1515
This command pulls down an image or a repository from a registry. If
1616
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+
1920
If you do not specify a `REGISTRY_HOST`, the command uses Docker's public
2021
registry located at `registry-1.docker.io` by default.
2122

@@ -28,11 +29,11 @@ registry located at `registry-1.docker.io` by default.
2829

2930
# EXAMPLE
3031

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'
32+
## Pull a repository with multiple images with the -a|--all-tags option set to true.
33+
Note that if the image is previously downloaded then the status would be
34+
`Status: Image is up to date for fedora`.
3435

35-
$ docker pull fedora
36+
$ docker pull --all-tags fedora
3637
Pulling repository fedora
3738
ad57ef8d78d7: Download complete
3839
105182bb5e8b: Download complete
@@ -48,9 +49,24 @@ registry located at `registry-1.docker.io` by default.
4849
fedora heisenbug 105182bb5e8b 5 days ago 372.7 MB
4950
fedora latest 105182bb5e8b 5 days ago 372.7 MB
5051

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'
52+
## Pull a repository with the -a|--all-tags option set to false (this is the default).
53+
54+
$ docker pull debian
55+
Using default tag: latest
56+
latest: Pulling from library/debian
57+
2c49f83e0b13: Pull complete
58+
4a5e6db8c069: Pull complete
59+
60+
Status: Downloaded newer image for debian:latest
61+
62+
$ docker images
63+
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
64+
debian latest 4a5e6db8c069 5 days ago 125.1 MB
65+
66+
67+
## Pull an image, manually specifying path to Docker's public registry and tag
68+
Note that if the image is previously downloaded then the status would be
69+
`Status: Image is up to date for registry.hub.docker.com/fedora:20`
5470

5571
$ docker pull registry.hub.docker.com/fedora:20
5672
Pulling repository fedora
@@ -72,3 +88,4 @@ June 2014, updated by Sven Dowideit <[email protected]>
7288
August 2014, updated by Sven Dowideit <[email protected]>
7389
April 2015, updated by John Willis <[email protected]>
7490
April 2015, updated by Mary Anthony for v2 <[email protected]>
91+
September 2015, updated by Sally O'Malley <[email protected]>

0 commit comments

Comments
 (0)