Scroll to navigation

DOCKER-COMPOSE-CP(1) DOCKER-COMPOSE-CP(1)

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)

Mar 2025