Skip to content

Instantly share code, notes, and snippets.

@brenopolanski
Created November 2, 2017 17:37
Show Gist options
  • Save brenopolanski/bb299e120f0dbdc87655fb261ce4f1db to your computer and use it in GitHub Desktop.
Save brenopolanski/bb299e120f0dbdc87655fb261ce4f1db to your computer and use it in GitHub Desktop.
Docker - copy file from container to host

In order to copy a file from a container to the host, you can use the command:

docker cp <containerId>:/file/path/within/container /host/path/target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment