Copy a file from a Docker container to the current host

Copies files from a Docker container back to the host. Note the container does not need to be running in order to use this command.

Authored by: creack
Brought to you by Warp, a free terminal reimagined to work like a modern app.
container_id
container_filepath
local_filepath

Command
Copy
docker cp container_id:container_filepath local_filepath
Tags