github.com/chenchun/docker@v1.3.2-0.20150629222414-20467faf132b/docs/reference/commandline/pull.md (about)

     1  <!--[metadata]>
     2  +++
     3  title = "pull"
     4  description = "The pull command description and usage"
     5  keywords = ["pull, image, hub, docker"]
     6  [menu.main]
     7  parent = "smn_cli"
     8  weight=1
     9  +++
    10  <![end-metadata]-->
    11  
    12  # pull
    13  
    14      Usage: docker pull [OPTIONS] NAME[:TAG] | [REGISTRY_HOST[:REGISTRY_PORT]/]NAME[:TAG]
    15  
    16      Pull an image or a repository from the registry
    17  
    18        -a, --all-tags=false    Download all tagged images in the repository
    19  
    20  Most of your images will be created on top of a base image from the
    21  [Docker Hub](https://hub.docker.com) registry.
    22  
    23  [Docker Hub](https://hub.docker.com) contains many pre-built images that you
    24  can `pull` and try without needing to define and configure your own.
    25  
    26  It is also possible to manually specify the path of a registry to pull from.
    27  For example, if you have set up a local registry, you can specify its path to
    28  pull from it. A repository path is similar to a URL, but does not contain
    29  a protocol specifier (`https://`, for example).
    30  
    31  To download a particular image, or set of images (i.e., a repository),
    32  use `docker pull`:
    33  
    34      $ docker pull debian
    35      # will pull the debian:latest image and its intermediate layers
    36      $ docker pull debian:testing
    37      # will pull the image named debian:testing and any intermediate
    38      # layers it is based on.
    39      $ docker pull debian@sha256:cbbf2f9a99b47fc460d422812b6a5adff7dfee951d8fa2e4a98caa0382cfbdbf
    40      # will pull the image from the debian repository with the digest
    41      # sha256:cbbf2f9a99b47fc460d422812b6a5adff7dfee951d8fa2e4a98caa0382cfbdbf
    42      # and any intermediate layers it is based on.
    43      # (Typically the empty `scratch` image, a MAINTAINER layer,
    44      # and the un-tarred base).
    45      $ docker pull --all-tags centos
    46      # will pull all the images from the centos repository
    47      $ docker pull registry.hub.docker.com/debian
    48      # manually specifies the path to the default Docker registry. This could
    49      # be replaced with the path to a local registry to pull from another source.
    50      # sudo docker pull myhub.com:8080/test-image
    51