Skip to content

Instantly share code, notes, and snippets.

@qinjie
Forked from brenopolanski/docker-cp-container-host.md
Last active August 19, 2022 10:49
Show Gist options
  • Save qinjie/6a276aecd68a4440c5f200334d29e2bb to your computer and use it in GitHub Desktop.
Save qinjie/6a276aecd68a4440c5f200334d29e2bb to your computer and use it in GitHub Desktop.
Docker Useful Commands

To copy a file from container to host:

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