From e4c70d390de72bfa9bbb6d016a47a08141295bf3 Mon Sep 17 00:00:00 2001 From: Boaz Shuster Date: Wed, 21 Jun 2017 13:20:02 +0300 Subject: [PATCH] Update the cp command docs to include archive Signed-off-by: Boaz Shuster --- docs/reference/commandline/cp.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/reference/commandline/cp.md b/docs/reference/commandline/cp.md index 5cbbee25ae..8b067f22cd 100644 --- a/docs/reference/commandline/cp.md +++ b/docs/reference/commandline/cp.md @@ -28,6 +28,7 @@ container source to stdout. Options: -L, --follow-link Always follow symbol link in SRC_PATH + -a, --archive Archive mode (copy all uid/gid information) --help Print usage ``` @@ -53,7 +54,9 @@ copied recursively with permissions preserved if possible. Ownership is set to 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 +command. However, if you specify the `-a` option, `docker cp` sets the ownership +to the user and primary group at the source. +If you specify the `-L` option, `docker cp` follows any symbolic link in the `SRC_PATH`. `docker cp` does *not* create parent directories for `DEST_PATH` if they do not exist.