Files
docker-docs/_data/engine-cli/docker_export.yaml
French Ben a1933d276b New CLI added
Signed-off-by: French Ben <frenchben@docker.com>
2017-02-14 14:30:56 -08:00

29 lines
934 B
YAML

command: docker export
short: Export a container's filesystem as a tar archive
long: |-
The `docker export` command does not export the contents of volumes associated
with the container. If a volume is mounted on top of an existing directory in
the container, `docker export` will export the contents of the *underlying*
directory, not the contents of the volume.
Refer to [Backup, restore, or migrate data volumes](https://docs.docker.com/engine/tutorials/dockervolumes/#backup-restore-or-migrate-data-volumes)
in the user guide for examples on exporting data in a volume.
usage: docker export [OPTIONS] CONTAINER
pname: docker
plink: docker.yaml
options:
- option: output
shorthand: o
description: Write to a file, instead of STDOUT
example: |-
ch of these commands has the same result.
```bash
$ docker export red_panda > latest.tar
```
```bash
$ docker export --output="latest.tar" red_panda
```