2014-04-16 18:07:55 +00:00
|
|
|
% DOCKER(1) Docker User Manuals
|
2014-07-01 02:58:04 +00:00
|
|
|
% Docker Community
|
|
|
|
% JUNE 2014
|
2014-04-16 18:07:55 +00:00
|
|
|
# NAME
|
2015-04-01 19:20:59 +00:00
|
|
|
docker-pull - Pull an image or a repository from a registry
|
2014-04-16 18:07:55 +00:00
|
|
|
|
|
|
|
# SYNOPSIS
|
2014-07-01 02:58:04 +00:00
|
|
|
**docker pull**
|
2014-08-29 00:16:40 +00:00
|
|
|
[**-a**|**--all-tags**[=*false*]]
|
2014-10-15 21:14:12 +00:00
|
|
|
[**--help**]
|
2015-03-26 20:09:56 +00:00
|
|
|
NAME[:TAG] | [REGISTRY_HOST[:REGISTRY_PORT]/]NAME[:TAG]
|
2014-04-16 18:07:55 +00:00
|
|
|
|
|
|
|
# DESCRIPTION
|
|
|
|
|
2015-04-01 19:20:59 +00:00
|
|
|
This command pulls down an image or a repository from a registry. If
|
2014-06-30 01:31:15 +00:00
|
|
|
there is more than one image for a repository (e.g., fedora) then all
|
2014-04-16 18:07:55 +00:00
|
|
|
images for that repository name are pulled down including any tags.
|
2015-04-01 19:20:59 +00:00
|
|
|
|
|
|
|
If you do not specify a `REGISTRY_HOST`, the command uses Docker's public
|
|
|
|
registry located at `registry-1.docker.io` by default.
|
2014-04-16 18:07:55 +00:00
|
|
|
|
2014-07-01 02:58:04 +00:00
|
|
|
# OPTIONS
|
2014-08-29 00:16:40 +00:00
|
|
|
**-a**, **--all-tags**=*true*|*false*
|
|
|
|
Download all tagged images in the repository. The default is *false*.
|
2014-10-15 21:14:12 +00:00
|
|
|
**--help**
|
|
|
|
Print usage statement
|
2014-07-01 02:58:04 +00:00
|
|
|
|
2014-10-15 21:14:12 +00:00
|
|
|
# EXAMPLE
|
2014-04-16 18:07:55 +00:00
|
|
|
|
2014-06-09 14:59:49 +00:00
|
|
|
# Pull a repository with multiple images
|
2014-09-23 22:53:43 +00:00
|
|
|
# Note that if the image is previously downloaded then the status would be
|
|
|
|
# 'Status: Image is up to date for fedora'
|
2014-04-16 18:07:55 +00:00
|
|
|
|
2015-03-26 18:12:37 +00:00
|
|
|
$ docker pull fedora
|
2014-04-16 18:07:55 +00:00
|
|
|
Pulling repository fedora
|
|
|
|
ad57ef8d78d7: Download complete
|
|
|
|
105182bb5e8b: Download complete
|
|
|
|
511136ea3c5a: Download complete
|
|
|
|
73bd853d2ea5: Download complete
|
|
|
|
|
2014-09-23 22:53:43 +00:00
|
|
|
Status: Downloaded newer image for fedora
|
|
|
|
|
2015-03-26 18:12:37 +00:00
|
|
|
$ docker images
|
2014-04-16 18:07:55 +00:00
|
|
|
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
|
|
|
|
|
2015-04-01 19:20:59 +00:00
|
|
|
# Pull an image, manually specifying path to Docker's public registry and tag
|
2014-09-23 22:53:43 +00:00
|
|
|
# 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'
|
2014-06-09 14:59:49 +00:00
|
|
|
|
2015-03-26 18:12:37 +00:00
|
|
|
$ docker pull registry.hub.docker.com/fedora:20
|
2014-06-09 14:59:49 +00:00
|
|
|
Pulling repository fedora
|
|
|
|
3f2fed40e4b0: Download complete
|
|
|
|
511136ea3c5a: Download complete
|
|
|
|
fd241224e9cf: Download complete
|
|
|
|
|
2014-09-23 22:53:43 +00:00
|
|
|
Status: Downloaded newer image for registry.hub.docker.com/fedora:20
|
|
|
|
|
2015-03-26 18:12:37 +00:00
|
|
|
$ docker images
|
2014-06-09 14:59:49 +00:00
|
|
|
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
|
|
|
|
fedora 20 3f2fed40e4b0 4 days ago 372.7 MB
|
|
|
|
|
|
|
|
|
2014-04-16 18:07:55 +00:00
|
|
|
# HISTORY
|
|
|
|
April 2014, Originally compiled by William Henry (whenry at redhat dot com)
|
2014-07-02 00:30:25 +00:00
|
|
|
based on docker.com source material and internal work.
|
2014-07-03 01:07:42 +00:00
|
|
|
June 2014, updated by Sven Dowideit <SvenDowideit@home.org.au>
|
2014-08-29 00:16:40 +00:00
|
|
|
August 2014, updated by Sven Dowideit <SvenDowideit@home.org.au>
|
2015-03-26 20:09:56 +00:00
|
|
|
April 2015, updated by John Willis <john.willis@docker.com>
|
2015-04-01 19:20:59 +00:00
|
|
|
April 2015, updated by Mary Anthony for v2 <mary@docker.com>
|