github.com/vieux/docker@v0.6.3-0.20161004191708-e097c2a938c7/man/docker-export.1.md (about)

     1  % DOCKER(1) Docker User Manuals
     2  % Docker Community
     3  % JUNE 2014
     4  # NAME
     5  docker-export - Export the contents of a container's filesystem as a tar archive
     6  
     7  # SYNOPSIS
     8  **docker export**
     9  [**--help**]
    10  [**-o**|**--output**[=*""*]]
    11  CONTAINER
    12  
    13  # DESCRIPTION
    14  Export the contents of a container's filesystem using the full or shortened
    15  container ID or container name. The output is exported to STDOUT and can be
    16  redirected to a tar file.
    17  
    18  Stream to a file instead of STDOUT by using **-o**.
    19  
    20  # OPTIONS
    21  **--help**
    22    Print usage statement
    23    
    24  **-o**, **--output**=""
    25    Write to a file, instead of STDOUT
    26  
    27  # EXAMPLES
    28  Export the contents of the container called angry_bell to a tar file
    29  called angry_bell.tar:
    30  
    31      # docker export angry_bell > angry_bell.tar
    32      # docker export --output=angry_bell-latest.tar angry_bell
    33      # ls -sh angry_bell.tar
    34      321M angry_bell.tar
    35      # ls -sh angry_bell-latest.tar
    36      321M angry_bell-latest.tar
    37  
    38  # See also
    39  **docker-import(1)** to create an empty filesystem image
    40  and import the contents of the tarball into it, then optionally tag it.
    41  
    42  # HISTORY
    43  April 2014, Originally compiled by William Henry (whenry at redhat dot com)
    44  based on docker.com source material and internal work.
    45  June 2014, updated by Sven Dowideit <SvenDowideit@home.org.au>
    46  January 2015, updated by Joseph Kern (josephakern at gmail dot com)