CmdID / docker / docker compose
docker compose cp
Copy files/folders between a service container and the local filesystem Docker Compose reference
5 options Its page in the Docker Compose reference
Options
--allInclude containers created by the run command--archive, -aArchive mode (copy all uid/gid information)--dry-runExecute command in dry run mode--follow-link, -LAlways follow symbol link in SRC_PATH--indexIndex of the container if service has multiple replicas