docker cp

Estimated reading time: 1 minute

Description

Copy files/folders between a container and the local filesystem

Usage

docker cp [OPTIONS] CONTAINER:SRC_PATH DEST_PATH|-
docker cp [OPTIONS] SRC_PATH|- CONTAINER:DEST_PATH

Options

Name, shorthand Default Description
--follow-link, -L false Always follow symbol link in SRC_PATH

Parent command

Command Description
docker The base command for the Docker CLI.

Extended description

Alias for docker container cp.

chat icon Feedback? Suggestions? Can't find something in the docs?
Edit this page Request docs changes Get support
Rate this page: