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