0a0dd116 |
% DOCKER(1) Docker User Manuals |
b07f1938 |
% Docker Community
% JUNE 2014 |
0a0dd116 |
# NAME |
b6d55ebc |
docker-pull - Pull an image or a repository from a registry |
0a0dd116 |
# SYNOPSIS |
b07f1938 |
**docker pull** |
82b0c3e5 |
[**-a**|**--all-tags**[=*false*]] |
a2b529ea |
[**--help**] |
2c07fd9f |
NAME[:TAG] | [REGISTRY_HOST[:REGISTRY_PORT]/]NAME[:TAG] |
0a0dd116 |
# DESCRIPTION
|
b6d55ebc |
This command pulls down an image or a repository from a registry. If |
fde10cf8 |
there is more than one image for a repository (e.g., fedora) then all |
73fe42e3 |
images for that repository name can be pulled down including any tags
(see the option **-a** or **--all-tags**).
|
b6d55ebc |
If you do not specify a `REGISTRY_HOST`, the command uses Docker's public
registry located at `registry-1.docker.io` by default. |
0a0dd116 |
|
b07f1938 |
# OPTIONS |
82b0c3e5 |
**-a**, **--all-tags**=*true*|*false*
Download all tagged images in the repository. The default is *false*. |
73214144 |
|
a2b529ea |
**--help**
Print usage statement |
b07f1938 |
|
a2b529ea |
# EXAMPLE |
0a0dd116 |
|
73fe42e3 |
## Pull a repository with multiple images with the -a|--all-tags option set to true.
Note that if the image is previously downloaded then the status would be
`Status: Image is up to date for fedora`. |
0a0dd116 |
|
73fe42e3 |
$ docker pull --all-tags fedora |
0a0dd116 |
Pulling repository fedora
ad57ef8d78d7: Download complete
105182bb5e8b: Download complete
511136ea3c5a: Download complete
73bd853d2ea5: Download complete
|
ecff6303 |
Status: Downloaded newer image for fedora
|
29d01b7d |
$ docker images |
0a0dd116 |
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
fedora rawhide ad57ef8d78d7 5 days ago 359.3 MB
fedora 20 105182bb5e8b 5 days ago 372.7 MB
fedora heisenbug 105182bb5e8b 5 days ago 372.7 MB
fedora latest 105182bb5e8b 5 days ago 372.7 MB
|
73fe42e3 |
## Pull a repository with the -a|--all-tags option set to false (this is the default).
$ docker pull debian
Using default tag: latest
latest: Pulling from library/debian
2c49f83e0b13: Pull complete
4a5e6db8c069: Pull complete
Status: Downloaded newer image for debian:latest
$ docker images
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
debian latest 4a5e6db8c069 5 days ago 125.1 MB
## Pull an image, manually specifying path to Docker's public 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` |
aab9078f |
|
29d01b7d |
$ docker pull registry.hub.docker.com/fedora:20 |
aab9078f |
Pulling repository fedora
3f2fed40e4b0: Download complete
511136ea3c5a: Download complete
fd241224e9cf: Download complete
|
ecff6303 |
Status: Downloaded newer image for registry.hub.docker.com/fedora:20
|
29d01b7d |
$ docker images |
aab9078f |
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
fedora 20 3f2fed40e4b0 4 days ago 372.7 MB
|
0a0dd116 |
# HISTORY
April 2014, Originally compiled by William Henry (whenry at redhat dot com) |
fa29b1f0 |
based on docker.com source material and internal work. |
f8d9ecfb |
June 2014, updated by Sven Dowideit <SvenDowideit@home.org.au> |
82b0c3e5 |
August 2014, updated by Sven Dowideit <SvenDowideit@home.org.au> |
2c07fd9f |
April 2015, updated by John Willis <john.willis@docker.com> |
b6d55ebc |
April 2015, updated by Mary Anthony for v2 <mary@docker.com> |
73fe42e3 |
September 2015, updated by Sally O'Malley <somalley@redhat.com> |