github.com/flavio/docker@v0.1.3-0.20170117145210-f63d1a6eec47/docs/reference/commandline/load.md (about) 1 --- 2 title: "load" 3 description: "The load command description and usage" 4 keywords: "stdin, tarred, repository" 5 --- 6 7 <!-- This file is maintained within the docker/docker Github 8 repository at https://github.com/docker/docker/. Make all 9 pull requests against that repo. If you see this file in 10 another repository, consider it read-only there, as it will 11 periodically be overwritten by the definitive file. Pull 12 requests which include edits to this file in other repositories 13 will be rejected. 14 --> 15 16 # load 17 18 ```markdown 19 Usage: docker load [OPTIONS] 20 21 Load an image from a tar archive or STDIN 22 23 Options: 24 --help Print usage 25 -i, --input string Read from tar archive file, instead of STDIN. 26 The tarball may be compressed with gzip, bzip, or xz 27 -q, --quiet Suppress the load output but still outputs the imported images 28 ``` 29 30 Loads a tarred repository from a file or the standard input stream. 31 Restores both images and tags. 32 33 $ docker images 34 REPOSITORY TAG IMAGE ID CREATED SIZE 35 $ docker load < busybox.tar.gz 36 # […] 37 Loaded image: busybox:latest 38 $ docker images 39 REPOSITORY TAG IMAGE ID CREATED SIZE 40 busybox latest 769b9341d937 7 weeks ago 2.489 MB 41 $ docker load --input fedora.tar 42 # […] 43 Loaded image: fedora:rawhide 44 # […] 45 Loaded image: fedora:20 46 # […] 47 $ docker images 48 REPOSITORY TAG IMAGE ID CREATED SIZE 49 busybox latest 769b9341d937 7 weeks ago 2.489 MB 50 fedora rawhide 0d20aec6529d 7 weeks ago 387 MB 51 fedora 20 58394af37342 7 weeks ago 385.5 MB 52 fedora heisenbug 58394af37342 7 weeks ago 385.5 MB 53 fedora latest 58394af37342 7 weeks ago 385.5 MB