github.com/yogeshlonkar/moby@v1.13.2-0.20201203103638-c0b64beaea94/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  ## Description
    30  
    31  `docker load` loads a tarred repository from a file or the standard input stream.
    32  It restores both images and tags.
    33  
    34  ## Examples
    35  
    36  ```bash
    37  $ docker images
    38  
    39  REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
    40  
    41  $ docker load < busybox.tar.gz
    42  
    43  Loaded image: busybox:latest
    44  $ docker images
    45  REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
    46  busybox             latest              769b9341d937        7 weeks ago         2.489 MB
    47  
    48  $ docker load --input fedora.tar
    49  
    50  Loaded image: fedora:rawhide
    51  
    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  ```