github.com/brahmaroutu/docker@v1.2.1-0.20160809185609-eb28dde01f16/docs/reference/commandline/load.md (about) 1 <!--[metadata]> 2 +++ 3 title = "load" 4 description = "The load command description and usage" 5 keywords = ["stdin, tarred, repository"] 6 [menu.main] 7 parent = "smn_cli" 8 +++ 9 <![end-metadata]--> 10 11 # load 12 13 ```markdown 14 Usage: docker load [OPTIONS] 15 16 Load an image from a tar archive or STDIN 17 18 Options: 19 --help Print usage 20 -i, --input string Read from tar archive file, instead of STDIN. 21 The tarball may be compressed with gzip, bzip, or xz 22 -q, --quiet Suppress the load output but still outputs the imported images 23 ``` 24 25 Loads a tarred repository from a file or the standard input stream. 26 Restores both images and tags. 27 28 $ docker images 29 REPOSITORY TAG IMAGE ID CREATED SIZE 30 $ docker load < busybox.tar.gz 31 # […] 32 Loaded image: busybox:latest 33 $ docker images 34 REPOSITORY TAG IMAGE ID CREATED SIZE 35 busybox latest 769b9341d937 7 weeks ago 2.489 MB 36 $ docker load --input fedora.tar 37 # […] 38 Loaded image: fedora:rawhide 39 # […] 40 Loaded image: fedora:20 41 # […] 42 $ docker images 43 REPOSITORY TAG IMAGE ID CREATED SIZE 44 busybox latest 769b9341d937 7 weeks ago 2.489 MB 45 fedora rawhide 0d20aec6529d 7 weeks ago 387 MB 46 fedora 20 58394af37342 7 weeks ago 385.5 MB 47 fedora heisenbug 58394af37342 7 weeks ago 385.5 MB 48 fedora latest 58394af37342 7 weeks ago 385.5 MB