github.com/daaku/docker@v1.5.0/docs/man/docker-pull.1.md (about)

     1  % DOCKER(1) Docker User Manuals
     2  % Docker Community
     3  % JUNE 2014
     4  # NAME
     5  docker-pull - Pull an image or a repository from the registry
     6  
     7  # SYNOPSIS
     8  **docker pull**
     9  [**-a**|**--all-tags**[=*false*]]
    10  [**--help**] 
    11  NAME[:TAG]
    12  
    13  # DESCRIPTION
    14  
    15  This command pulls down an image or a repository from the registry. If
    16  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  It is also possible to specify a non-default registry to pull from.
    19  
    20  # OPTIONS
    21  **-a**, **--all-tags**=*true*|*false*
    22     Download all tagged images in the repository. The default is *false*.
    23  **--help**
    24    Print usage statement
    25  
    26  # EXAMPLE
    27  
    28  # Pull a repository with multiple images
    29  # Note that if the  image is previously downloaded then the status would be
    30  # 'Status: Image is up to date for fedora'
    31  
    32      $ sudo docker pull fedora
    33      Pulling repository fedora
    34      ad57ef8d78d7: Download complete
    35      105182bb5e8b: Download complete
    36      511136ea3c5a: Download complete
    37      73bd853d2ea5: Download complete
    38  
    39      Status: Downloaded newer image for fedora
    40  
    41      $ sudo docker images
    42      REPOSITORY   TAG         IMAGE ID        CREATED      VIRTUAL SIZE
    43      fedora       rawhide     ad57ef8d78d7    5 days ago   359.3 MB
    44      fedora       20          105182bb5e8b    5 days ago   372.7 MB
    45      fedora       heisenbug   105182bb5e8b    5 days ago   372.7 MB
    46      fedora       latest      105182bb5e8b    5 days ago   372.7 MB
    47  
    48  # Pull an image, manually specifying path to the registry and tag
    49  # Note that if the  image is previously downloaded then the status would be
    50  # 'Status: Image is up to date for registry.hub.docker.com/fedora:20'
    51  
    52      $ sudo docker pull registry.hub.docker.com/fedora:20
    53      Pulling repository fedora
    54      3f2fed40e4b0: Download complete 
    55      511136ea3c5a: Download complete 
    56      fd241224e9cf: Download complete 
    57  
    58      Status: Downloaded newer image for registry.hub.docker.com/fedora:20
    59  
    60      $ sudo docker images
    61      REPOSITORY   TAG         IMAGE ID        CREATED      VIRTUAL SIZE
    62      fedora       20          3f2fed40e4b0    4 days ago   372.7 MB
    63  
    64  
    65  # HISTORY
    66  April 2014, Originally compiled by William Henry (whenry at redhat dot com)
    67  based on docker.com source material and internal work.
    68  June 2014, updated by Sven Dowideit <SvenDowideit@home.org.au>
    69  August 2014, updated by Sven Dowideit <SvenDowideit@home.org.au>