2022-03-09 12:57:07 +01:00
|
|
|
# docker compose cp
|
|
|
|
|
|
|
|
<!---MARKER_GEN_START-->
|
|
|
|
Copy files/folders between a service container and the local filesystem
|
|
|
|
|
|
|
|
### Options
|
|
|
|
|
2023-07-03 10:21:33 +02:00
|
|
|
| Name | Type | Default | Description |
|
|
|
|
|:----------------------|:------|:--------|:--------------------------------------------------------|
|
|
|
|
| `-a`, `--archive` | | | Archive mode (copy all uid/gid information) |
|
|
|
|
| `--dry-run` | | | Execute command in dry run mode |
|
|
|
|
| `-L`, `--follow-link` | | | Always follow symbol link in SRC_PATH |
|
|
|
|
| `--index` | `int` | `0` | index of the container if service has multiple replicas |
|
2022-03-09 12:57:07 +01:00
|
|
|
|
|
|
|
|
|
|
|
<!---MARKER_GEN_END-->
|
|
|
|
|