Skip to content

Latest commit

 

History

History
16 lines (10 loc) · 509 Bytes

docker-cp-from-container.md

File metadata and controls

16 lines (10 loc) · 509 Bytes

Copy from docker container to host

docker cp {{DOCKER_CONTAINER}}:{{SOURCE_LOCATION}} {{DESTINATION_LOCATION}}

  • DOCKER_CONTAINER: Source docker container name or ID
  • SOURCE_LOCATION: Absolute file path on docker container
  • DESTINATION_LOCATION: Relative file path on host

Example:

docker cp arshad-docker-container:/downloads/ak-cli.zip ak-cli.zip

Related Commands