docker-compose-cp(1)

docker-compose-cp1

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}

Overview

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

From docker-compose 2.26.1-4 in Debian 13 (Trixie). Parsed by carta from the page's man source.