Docker · Command
docker cp
Copies files and directories between a container and the local filesystem. It works with running or stopped containers and supports tar streams through standard input or output.
Last updated
Syntax
docker container cp [OPTIONS] CONTAINER:SRC_PATH DEST_PATH|-
docker cp [OPTIONS] SRC_PATH|- CONTAINER:DEST_PATHIn-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
docker cpdocker containerdocker execdocker compose cp