docker compose cp
| Description | Copy files/folders between a service container and the local filesystem |
|---|---|
| Usage | docker compose cp [OPTIONS] SERVICE:SRC_PATH DEST_PATH|-
docker compose cp [OPTIONS] SRC_PATH|- SERVICE:DEST_PATH |
Description
Copy files/folders between a service container and the local filesystem
Options
| Option | Default | Description |
|---|---|---|
--all
|
Include containers created by the run command | |
-a, --archive
|
Archive mode (copy all uid/gid information) | |
-L, --follow-link
|
Always follow symbol link in SRC_PATH | |
--index
|
Index of the container if service has multiple replicas |