github.com/justincormack/cli@v0.0.0-20201215022714-831ebeae9675/man/src/image/save.md (about)

     1  Produces a tarred repository to the standard output stream. Contains all
     2  parent layers, and all tags + versions, or specified repo:tag.
     3  
     4  Stream to a file instead of STDOUT by using **-o**.
     5  
     6  # EXAMPLES
     7  
     8  Save all fedora repository images to a fedora-all.tar and save the latest
     9  fedora image to a fedora-latest.tar:
    10  
    11      $ docker image save fedora > fedora-all.tar
    12      $ docker image save --output=fedora-latest.tar fedora:latest
    13      $ ls -sh fedora-all.tar
    14      721M fedora-all.tar
    15      $ ls -sh fedora-latest.tar
    16      367M fedora-latest.tar
    17  
    18  # See also
    19  **docker-image-load(1)** to load an image from a tar archive on STDIN.