Skip to content

Commit

Permalink
Adds clarification to behavior of missing directories.
Browse files Browse the repository at this point in the history
Closes moby#20920

Signed-off-by: Micah Zoltu <[email protected]>
  • Loading branch information
Micah Zoltu committed Mar 3, 2016
1 parent 17156ba commit 889d061
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion docs/reference/commandline/cp.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 2 additions & 1 deletion man/docker-cp.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 889d061

Please sign in to comment.