github.com/AliyunContainerService/cli@v0.0.0-20181009023821-814ced4b30d0/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/cli GitHub 8 repository at https://github.com/docker/cli/. 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 or repository from a tar archive (even if compressed with gzip, 22 bzip2, or xz) from a file or STDIN. 23 24 Options: 25 --help Print usage 26 -i, --input string Read from tar archive file, instead of STDIN. 27 The tarball may be compressed with gzip, bzip, or xz 28 -q, --quiet Suppress the load output but still outputs the imported images 29 ``` 30 ## Description 31 32 Load an image or repository from a tar archive (even if compressed with gzip, 33 bzip2, or xz) from a file or STDIN. It restores both images and tags. 34 35 ## Examples 36 37 ```bash 38 $ docker image ls 39 40 REPOSITORY TAG IMAGE ID CREATED SIZE 41 42 $ docker load < busybox.tar.gz 43 44 Loaded image: busybox:latest 45 $ docker images 46 REPOSITORY TAG IMAGE ID CREATED SIZE 47 busybox latest 769b9341d937 7 weeks ago 2.489 MB 48 49 $ docker load --input fedora.tar 50 51 Loaded image: fedora:rawhide 52 53 Loaded image: fedora:20 54 55 $ docker images 56 57 REPOSITORY TAG IMAGE ID CREATED SIZE 58 busybox latest 769b9341d937 7 weeks ago 2.489 MB 59 fedora rawhide 0d20aec6529d 7 weeks ago 387 MB 60 fedora 20 58394af37342 7 weeks ago 385.5 MB 61 fedora heisenbug 58394af37342 7 weeks ago 385.5 MB 62 fedora latest 58394af37342 7 weeks ago 385.5 MB 63 ```