github.com/pwn-term/docker@v0.0.0-20210616085119-6e977cce2565/cli/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  # load
     8  
     9  ```markdown
    10  Usage:  docker load [OPTIONS]
    11  
    12  Load an image or repository from a tar archive (even if compressed with gzip,
    13  bzip2, or xz) from a file or STDIN.
    14  
    15  Options:
    16        --help           Print usage
    17    -i, --input string   Read from tar archive file, instead of STDIN.
    18                         The tarball may be compressed with gzip, bzip, or xz
    19    -q, --quiet          Suppress the load output but still outputs the imported images
    20  ```
    21  ## Description
    22  
    23  Load an image or repository from a tar archive (even if compressed with gzip,
    24  bzip2, or xz) from a file or STDIN. It restores both images and tags.
    25  
    26  ## Examples
    27  
    28  ```bash
    29  $ docker image ls
    30  
    31  REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
    32  
    33  $ docker load < busybox.tar.gz
    34  
    35  Loaded image: busybox:latest
    36  $ docker images
    37  REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
    38  busybox             latest              769b9341d937        7 weeks ago         2.489 MB
    39  
    40  $ docker load --input fedora.tar
    41  
    42  Loaded image: fedora:rawhide
    43  
    44  Loaded image: fedora:20
    45  
    46  $ docker images
    47  
    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
    54  ```