From 4ffbcead4d56f59b060a027f2c02fbe14b4be9f7 Mon Sep 17 00:00:00 2001 From: Doug Davis Date: Thu, 5 Mar 2015 08:39:32 -0800 Subject: [PATCH] Add support for 'docker cp' to write to stdout Closes #10805 Signed-off-by: Doug Davis Upstream-commit: 30240ffc53bf30b2153e9b9973fa4bb44adf9655 Component: cli --- .../cli/docs/sources/reference/commandline/cli.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/components/cli/docs/sources/reference/commandline/cli.md b/components/cli/docs/sources/reference/commandline/cli.md index abe752260c..f4dd5a5ac4 100644 --- a/components/cli/docs/sources/reference/commandline/cli.md +++ b/components/cli/docs/sources/reference/commandline/cli.md @@ -757,12 +757,15 @@ Supported `Dockerfile` instructions: `CMD`, `ENTRYPOINT`, `ENV`, `EXPOSE`, ## cp -Copy files/folders from a container's filesystem to the host -path. Paths are relative to the root of the filesystem. +Copy files/folders from a container's filesystem to the +path. Use '-' to write the data as a tar file to STDOUT. +Paths are relative to the root of the filesystem. - Usage: docker cp CONTAINER:PATH HOSTPATH + Usage: docker cp CONTAINER:PATH HOSTPATH|- + + Copy files/folders from the PATH to the HOSTPATH. Use '-' to write the data + as a tar file to STDOUT. - Copy files/folders from the PATH to the HOSTPATH ## create