github.com/nf/docker@v1.8.1/docs/reference/commandline/save.md (about)

     1  <!--[metadata]>
     2  +++
     3  title = "save"
     4  description = "The save command description and usage"
     5  keywords = ["tarred, repository, backup"]
     6  [menu.main]
     7  parent = "smn_cli"
     8  weight=1
     9  +++
    10  <![end-metadata]-->
    11  
    12  # save
    13  
    14      Usage: docker save [OPTIONS] IMAGE [IMAGE...]
    15  
    16      Save an image(s) to a tar archive (streamed to STDOUT by default)
    17  
    18        -o, --output=""    Write to a file, instead of STDOUT
    19  
    20  Produces a tarred repository to the standard output stream.
    21  Contains all parent layers, and all tags + versions, or specified `repo:tag`, for
    22  each argument provided.
    23  
    24  It is used to create a backup that can then be used with `docker load`
    25  
    26      $ docker save busybox > busybox.tar
    27      $ ls -sh busybox.tar
    28      2.7M busybox.tar
    29      $ docker save --output busybox.tar busybox
    30      $ ls -sh busybox.tar
    31      2.7M busybox.tar
    32      $ docker save -o fedora-all.tar fedora
    33      $ docker save -o fedora-latest.tar fedora:latest
    34  
    35  It is even useful to cherry-pick particular tags of an image repository
    36  
    37      $ docker save -o ubuntu.tar ubuntu:lucid ubuntu:saucy