github.com/sijibomii/docker@v0.0.0-20231230191044-5cf6ca554647/docs/reference/commandline/load.md (about)

     1  <!--[metadata]>
     2  +++
     3  title = "load"
     4  description = "The load command description and usage"
     5  keywords = ["stdin, tarred, repository"]
     6  [menu.main]
     7  parent = "smn_cli"
     8  +++
     9  <![end-metadata]-->
    10  
    11  # load
    12  
    13      Usage: docker load [OPTIONS]
    14  
    15      Load an image from a tar archive or STDIN
    16  
    17        --help             Print usage
    18        -i, --input=""     Read from a tar archive file, instead of STDIN. The tarball may be compressed with gzip, bzip, or xz
    19        -q, --quiet        Suppress the load output. Without this option, a progress bar is displayed.
    20  
    21  Loads a tarred repository from a file or the standard input stream.
    22  Restores both images and tags.
    23  
    24      $ docker images
    25      REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
    26      $ docker load < busybox.tar.gz
    27      $ docker images
    28      REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
    29      busybox             latest              769b9341d937        7 weeks ago         2.489 MB
    30      $ docker load --input fedora.tar
    31      $ docker images
    32      REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
    33      busybox             latest              769b9341d937        7 weeks ago         2.489 MB
    34      fedora              rawhide             0d20aec6529d        7 weeks ago         387 MB
    35      fedora              20                  58394af37342        7 weeks ago         385.5 MB
    36      fedora              heisenbug           58394af37342        7 weeks ago         385.5 MB
    37      fedora              latest              58394af37342        7 weeks ago         385.5 MB