mirror of https://github.com/docker/docs.git
69 lines
1.9 KiB
YAML
69 lines
1.9 KiB
YAML
command: docker cp
|
|
aliases: docker container cp, docker cp
|
|
short: Copy files/folders between a container and the local filesystem
|
|
long: |-
|
|
Copy files/folders between a container and the local filesystem
|
|
|
|
Use '-' as the source to read a tar archive from stdin
|
|
and extract it to a directory destination in a container.
|
|
Use '-' as the destination to stream a tar archive of a
|
|
container source to stdout.
|
|
usage: |-
|
|
docker cp [OPTIONS] CONTAINER:SRC_PATH DEST_PATH|-
|
|
docker cp [OPTIONS] SRC_PATH|- CONTAINER:DEST_PATH
|
|
pname: docker
|
|
plink: docker.yaml
|
|
options:
|
|
- option: archive
|
|
shorthand: a
|
|
value_type: bool
|
|
default_value: "false"
|
|
description: Archive mode (copy all uid/gid information)
|
|
deprecated: false
|
|
hidden: false
|
|
experimental: false
|
|
experimentalcli: false
|
|
kubernetes: false
|
|
swarm: false
|
|
- option: follow-link
|
|
shorthand: L
|
|
value_type: bool
|
|
default_value: "false"
|
|
description: Always follow symbol link in SRC_PATH
|
|
deprecated: false
|
|
hidden: false
|
|
experimental: false
|
|
experimentalcli: false
|
|
kubernetes: false
|
|
swarm: false
|
|
- option: quiet
|
|
shorthand: q
|
|
value_type: bool
|
|
default_value: "false"
|
|
description: |
|
|
Suppress progress output during copy. Progress output is automatically suppressed if no terminal is attached
|
|
deprecated: false
|
|
hidden: false
|
|
experimental: false
|
|
experimentalcli: false
|
|
kubernetes: false
|
|
swarm: false
|
|
inherited_options:
|
|
- option: help
|
|
value_type: bool
|
|
default_value: "false"
|
|
description: Print usage
|
|
deprecated: false
|
|
hidden: true
|
|
experimental: false
|
|
experimentalcli: false
|
|
kubernetes: false
|
|
swarm: false
|
|
deprecated: false
|
|
hidden: false
|
|
experimental: false
|
|
experimentalcli: false
|
|
kubernetes: false
|
|
swarm: false
|
|
|