docker compose cp
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
Options
| Name, shorthand | Default | Description |
--archive , -a |
Archive mode (copy all uid/gid information) | |
--follow-link , -L |
Always follow symbol link in SRC_PATH | |
--index |
Index of the container if there are multiple instances of a service . | |
--dry-run |
Execute command in dry run mode |