github.com/flavio/docker@v0.1.3-0.20170117145210-f63d1a6eec47/docs/reference/commandline/export.md (about) 1 --- 2 title: "export" 3 description: "The export command description and usage" 4 keywords: "export, file, system, container" 5 --- 6 7 <!-- This file is maintained within the docker/docker Github 8 repository at https://github.com/docker/docker/. Make all 9 pull requests against that repo. If you see this file in 10 another repository, consider it read-only there, as it will 11 periodically be overwritten by the definitive file. Pull 12 requests which include edits to this file in other repositories 13 will be rejected. 14 --> 15 16 # export 17 18 ```markdown 19 Usage: docker export [OPTIONS] CONTAINER 20 21 Export a container's filesystem as a tar archive 22 23 Options: 24 --help Print usage 25 -o, --output string Write to a file, instead of STDOUT 26 ``` 27 28 The `docker export` command does not export the contents of volumes associated 29 with the container. If a volume is mounted on top of an existing directory in 30 the container, `docker export` will export the contents of the *underlying* 31 directory, not the contents of the volume. 32 33 Refer to [Backup, restore, or migrate data 34 volumes](https://docs.docker.com/engine/tutorials/dockervolumes/#backup-restore-or-migrate-data-volumes) in 35 the user guide for examples on exporting data in a volume. 36 37 ## Examples 38 39 $ docker export red_panda > latest.tar 40 41 Or 42 43 $ docker export --output="latest.tar" red_panda