Merge pull request #223 from ripcurld0/docs_cp_prm

Update the cp command docs to include archive
This commit is contained in:
Sebastiaan van Stijn 2017-07-21 11:14:15 +02:00 committed by GitHub
commit 25ca529388
1 changed files with 4 additions and 1 deletions

View File

@ -28,6 +28,7 @@ container source to stdout.
Options: Options:
-L, --follow-link Always follow symbol link in SRC_PATH -L, --follow-link Always follow symbol link in SRC_PATH
-a, --archive Archive mode (copy all uid/gid information)
--help Print usage --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 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 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` 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 in the `SRC_PATH`. `docker cp` does *not* create parent directories for
`DEST_PATH` if they do not exist. `DEST_PATH` if they do not exist.