Skip to content
Fresh

docker compose cp

Back

Reference

docker compose cp

Copy as Markdown

Open MarkdownAsk Docs AIClaudeOpen in Claude

| Description | Copy files/folders between a service container and the local filesystem | | Usage | docker compose cp [OPTIONS] SERVICE:SRC_PATH DEST_PATH|-<br&gt;docker compose cp [OPTIONS] SRC_PATH|- SERVICE:DEST_PATH |

Description

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

Options

OptionDefaultDescription
--allInclude containers created by the run command
-a, --archiveArchive mode (copy all uid/gid information)
-L, --follow-linkAlways follow symbol link in SRC_PATH
--indexIndex of the container if service has multiple replicas