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