github.com/flavio/docker@v0.1.3-0.20170117145210-f63d1a6eec47/man/src/container/export.md (about) 1 Export the contents of a container's filesystem using the full or shortened 2 container ID or container name. The output is exported to STDOUT and can be 3 redirected to a tar file. 4 5 Stream to a file instead of STDOUT by using **-o**. 6 7 # EXAMPLES 8 Export the contents of the container called angry_bell to a tar file 9 called angry_bell.tar: 10 11 # docker export angry_bell > angry_bell.tar 12 # docker export --output=angry_bell-latest.tar angry_bell 13 # ls -sh angry_bell.tar 14 321M angry_bell.tar 15 # ls -sh angry_bell-latest.tar 16 321M angry_bell-latest.tar 17 18 # See also 19 **docker-import(1)** to create an empty filesystem image 20 and import the contents of the tarball into it, then optionally tag it.