github.com/nf/docker@v1.8.1/docs/reference/commandline/export.md (about) 1 <!--[metadata]> 2 +++ 3 title = "export" 4 description = "The export command description and usage" 5 keywords = ["export, file, system, container"] 6 [menu.main] 7 parent = "smn_cli" 8 weight=1 9 +++ 10 <![end-metadata]--> 11 12 # export 13 14 Usage: docker export [OPTIONS] CONTAINER 15 16 Export the contents of a filesystem 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 22 23 For example: 24 25 $ docker export red_panda > latest.tar 26 27 Or 28 29 $ docker export --output="latest.tar" red_panda 30 31 The `docker export` command does not export the contents of volumes associated 32 with the container. If a volume is mounted on top of an existing directory in 33 the container, `docker export` will export the contents of the *underlying* 34 directory, not the contents of the volume. 35 36 Refer to [Backup, restore, or migrate data 37 volumes](/userguide/dockervolumes/#backup-restore-or-migrate-data-volumes) in 38 the user guide for examples on exporting data in a volume.