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