add a little documentation for docker pull

Docker-DCO-1.1-Signed-off-by: SvenDowideit <SvenDowideit@home.org.au> (github: SvenDowideit)
Upstream-commit: 82b0c3e59ca12dd87bf2a9d88a63ff66e7d29fb4
Component: engine
This commit is contained in:
SvenDowideit
2014-08-29 10:16:40 +10:00
committed by unclejack
parent 18d6c43123
commit 6a9927c181
2 changed files with 10 additions and 3 deletions

View File

@ -6,6 +6,7 @@ docker-pull - Pull an image or a repository from the registry
# SYNOPSIS
**docker pull**
[**-a**|**--all-tags**[=*false*]]
NAME[:TAG]
# DESCRIPTION
@ -16,7 +17,8 @@ images for that repository name are pulled down including any tags.
It is also possible to specify a non-default registry to pull from.
# OPTIONS
There are no available options.
**-a**, **--all-tags**=*true*|*false*
Download all tagged images in the repository. The default is *false*.
# EXAMPLES
@ -53,3 +55,4 @@ There are no available options.
April 2014, Originally compiled by William Henry (whenry at redhat dot com)
based on docker.com source material and internal work.
June 2014, updated by Sven Dowideit <SvenDowideit@home.org.au>
August 2014, updated by Sven Dowideit <SvenDowideit@home.org.au>

View File

@ -852,6 +852,8 @@ This shows all the containers that have exited with status of '0'
Pull an image or a repository from the registry
-a, --all-tags=false Download all tagged images in the repository
Most of your images will be created on top of a base image from the
[Docker Hub](https://hub.docker.com) registry.
@ -867,11 +869,13 @@ To download a particular image, or set of images (i.e., a repository),
use `docker pull`:
$ docker pull debian
# will pull all the images in the debian repository
# will pull only the debian:latest image and its intermediate layers
$ docker pull debian:testing
# will pull only the image named debian:testing and any intermediate layers
# it is based on. (Typically the empty `scratch` image, a MAINTAINERs layer,
# it is based on. (Typically the empty `scratch` image, a MAINTAINER layer,
# and the un-tarred base).
$ docker pull --all-tags centos
# will pull all the images from the centos repository
$ docker pull registry.hub.docker.com/debian
# manually specifies the path to the default Docker registry. This could
# be replaced with the path to a local registry to pull from another source.