---
name: "docker-compose-cp"
section: "1"
platform: "linux"
package: "docker-compose"
version: "2.26.1-4"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/docker-compose-cp"
---

# docker-compose-cp(1)

Copy files/folders between a service container and the local filesystem

## NAME

docker-compose-cp - Copy files/folders between a service container and the local filesystem

## SYNOPSIS

**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

**-a**, **--archive**\[=false\]\
 	Archive mode (copy all uid/gid information)

**-L**, **--follow-link**\[=false\]\
 	Always follow symbol link in SRC\_PATH

**-h**, **--help**\[=false\]\
 	help for cp

**--index**=0\
 	Index of the container if service has multiple replicas

## OPTIONS INHERITED FROM PARENT COMMANDS

**--dry-run**\[=false\]\
 	Execute command in dry run mode

## SEE ALSO

**[docker-compose(1)](/docker-compose/1.md)**
