From 7ee06b046b3f701f7cffe99ab046f99cf9ffaf70 Mon Sep 17 00:00:00 2001 From: Sven Dowideit Date: Sat, 16 Nov 2013 20:33:17 +1000 Subject: [PATCH] add 'to STDOUT' to the help, and add a simple eg that mentions it too Upstream-commit: 9696ec509a53afaaf9b761b00f60e517634f7e4e Component: engine --- components/engine/commands.go | 2 +- components/engine/docs/sources/commandline/cli.rst | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/components/engine/commands.go b/components/engine/commands.go index a83fefb9ce..b322c6fb67 100644 --- a/components/engine/commands.go +++ b/components/engine/commands.go @@ -1451,7 +1451,7 @@ func (cli *DockerCli) CmdEvents(args ...string) error { } func (cli *DockerCli) CmdExport(args ...string) error { - cmd := cli.Subcmd("export", "CONTAINER", "Export the contents of a filesystem as a tar archive") + cmd := cli.Subcmd("export", "CONTAINER", "Export the contents of a filesystem as a tar archive to STDOUT") if err := cmd.Parse(args); err != nil { return nil } diff --git a/components/engine/docs/sources/commandline/cli.rst b/components/engine/docs/sources/commandline/cli.rst index 9875b5ded9..d6a3c36c90 100644 --- a/components/engine/docs/sources/commandline/cli.rst +++ b/components/engine/docs/sources/commandline/cli.rst @@ -369,7 +369,13 @@ Show events in the past from a specified time Usage: docker export CONTAINER - Export the contents of a filesystem as a tar archive + Export the contents of a filesystem as a tar archive to STDOUT + +for example: + +.. code-block:: bash + + $ sudo docker export red_panda > latest.tar .. _cli_history: