github.com/kaisenlinux/docker.io@v0.0.0-20230510090727-ea55db55fac7/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  
    22  ## Description
    23  
    24  Load an image or repository from a tar archive (even if compressed with gzip,
    25  bzip2, or xz) from a file or STDIN. It restores both images and tags.
    26  
    27  ## Examples
    28  
    29  ```console
    30  $ docker image ls
    31  
    32  REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
    33  ```
    34  
    35  ### Load images from STDIN
    36  
    37  ```console
    38  $ docker load < busybox.tar.gz
    39  
    40  Loaded image: busybox:latest
    41  $ docker images
    42  REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
    43  busybox             latest              769b9341d937        7 weeks ago         2.489 MB
    44  ```
    45  
    46  ### <a name="input"></a> Load images from a file (--input)
    47  
    48  ```console
    49  $ docker load --input fedora.tar
    50  
    51  Loaded image: fedora:rawhide
    52  Loaded image: fedora:20
    53  
    54  $ docker images
    55  
    56  REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
    57  busybox             latest              769b9341d937        7 weeks ago         2.489 MB
    58  fedora              rawhide             0d20aec6529d        7 weeks ago         387 MB
    59  fedora              20                  58394af37342        7 weeks ago         385.5 MB
    60  fedora              heisenbug           58394af37342        7 weeks ago         385.5 MB
    61  fedora              latest              58394af37342        7 weeks ago         385.5 MB
    62  ```