From 6f468d5dd9576e3d9d970d61fa08ed2de5c8d7dd Mon Sep 17 00:00:00 2001 From: Micah Zoltu Date: Thu, 3 Mar 2016 23:40:28 +0000 Subject: [PATCH] Adds clarification to behavior of missing directories. Closes #20920 Signed-off-by: Micah Zoltu Upstream-commit: 889d06178adef05d9f9d34a2098f0e6023b84bed Component: engine --- components/engine/docs/reference/commandline/cp.md | 3 ++- components/engine/man/docker-cp.1.md | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/components/engine/docs/reference/commandline/cp.md b/components/engine/docs/reference/commandline/cp.md index 9359bef365..841aeb36e0 100644 --- a/components/engine/docs/reference/commandline/cp.md +++ b/components/engine/docs/reference/commandline/cp.md @@ -39,7 +39,8 @@ the user and primary group at the destination. For example, files copied to a container are created with `UID:GID` of the root user. Files copied to the local machine are created with the `UID:GID` of the user which invoked the `docker cp` command. If you specify the `-L` option, `docker cp` follows any symbolic link -in the `SRC_PATH`. +in the `SRC_PATH`. `docker cp` does *not* create parent directories for +`DEST_PATH` if they do not exist. Assuming a path separator of `/`, a first argument of `SRC_PATH` and second argument of `DEST_PATH`, the behavior is as follows: diff --git a/components/engine/man/docker-cp.1.md b/components/engine/man/docker-cp.1.md index eda3b36031..84d64c2688 100644 --- a/components/engine/man/docker-cp.1.md +++ b/components/engine/man/docker-cp.1.md @@ -36,7 +36,8 @@ the user and primary group at the destination. For example, files copied to a container are created with `UID:GID` of the root user. Files copied to the local machine are created with the `UID:GID` of the user which invoked the `docker cp` command. If you specify the `-L` option, `docker cp` follows any symbolic link -in the `SRC_PATH`. +in the `SRC_PATH`. `docker cp` does *not* create parent directories for +`DEST_PATH` if they do not exist. Assuming a path separator of `/`, a first argument of `SRC_PATH` and second argument of `DEST_PATH`, the behavior is as follows: