github.com/olljanat/moby@v1.13.1/docs/reference/commandline/save.md (about)

     1  ---
     2  title: "save"
     3  description: "The save command description and usage"
     4  keywords: "tarred, repository, backup"
     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  # save
    17  
    18  ```markdown
    19  Usage:  docker save [OPTIONS] IMAGE [IMAGE...]
    20  
    21  Save one or more images to a tar archive (streamed to STDOUT by default)
    22  
    23  Options:
    24        --help            Print usage
    25    -o, --output string   Write to a file, instead of STDOUT
    26  ```
    27  
    28  Produces a tarred repository to the standard output stream.
    29  Contains all parent layers, and all tags + versions, or specified `repo:tag`, for
    30  each argument provided.
    31  
    32  It is used to create a backup that can then be used with `docker load`
    33  
    34      $ docker save busybox > busybox.tar
    35      $ ls -sh busybox.tar
    36      2.7M busybox.tar
    37      $ docker save --output busybox.tar busybox
    38      $ ls -sh busybox.tar
    39      2.7M busybox.tar
    40      $ docker save -o fedora-all.tar fedora
    41      $ docker save -o fedora-latest.tar fedora:latest
    42  
    43  It is even useful to cherry-pick particular tags of an image repository
    44  
    45      $ docker save -o ubuntu.tar ubuntu:lucid ubuntu:saucy