DOKK / manpages / debian 13 / docker-compose / docker-compose-cp.1.en
DOCKER-COMPOSE-CP(1) DOCKER-COMPOSE-CP(1)

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

docker compose cp [OPTIONS] SERVICE:SRC_PATH DEST_PATH|- docker compose cp [OPTIONS] SRC_PATH|- SERVICE:DEST_PATH

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

-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

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

docker-compose(1)

Mar 2025