Adds clarification to behavior of missing directories.

Closes #20920

Signed-off-by: Micah Zoltu <micah@zoltu.net>
This commit is contained in:
Micah Zoltu
2017-06-02 00:07:31 +00:00
committed by Tibor Vass
parent b1bac487a6
commit 31e78dd369
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -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:
+2 -1
View File
@@ -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: