github.com/tompao/docker@v1.9.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 +++ 9 <![end-metadata]--> 10 11 # export 12 13 Usage: docker export [OPTIONS] CONTAINER 14 15 Export the contents of a container's filesystem as a tar archive 16 17 --help=false Print usage 18 -o, --output="" Write to a file, instead of STDOUT 19 20 The `docker export` command does not export the contents of volumes associated 21 with the container. If a volume is mounted on top of an existing directory in 22 the container, `docker export` will export the contents of the *underlying* 23 directory, not the contents of the volume. 24 25 Refer to [Backup, restore, or migrate data 26 volumes](../../userguide/dockervolumes.md#backup-restore-or-migrate-data-volumes) in 27 the user guide for examples on exporting data in a volume. 28 29 ## Examples 30 31 $ docker export red_panda > latest.tar 32 33 Or 34 35 $ docker export --output="latest.tar" red_panda