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