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: creackBrought 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
Edit in GitHub
Copied