Merge pull request #11430 from jfrazelle/export_outputflag

Modified `docker export` to allow an --output flag
This commit is contained in:
Tibor Vass
2015-03-18 19:04:43 -04:00
4 changed files with 102 additions and 10 deletions
+11 -3
View File
@@ -1068,14 +1068,22 @@ This will create a new Bash session in the container `ubuntu_bash`.
## export
Usage: docker export CONTAINER
Usage: docker export [OPTIONS] CONTAINER
Export the contents of a filesystem as a tar archive to STDOUT
Export the contents of a filesystem to a tar archive (streamed to STDOUT by default)
For example:
-o, --output="" Write to a file, instead of STDOUT
Produces a tarred repository to the standard output stream.
For example:
$ sudo docker export red_panda > latest.tar
Or
$ sudo docker export --output="latest.tar" red_panda
> **Note:**
> `docker export` does not export the contents of volumes associated with the
> container. If a volume is mounted on top of an existing directory in the