Skip to content

Instantly share code, notes, and snippets.

@kiransubash
Last active April 24, 2024 03:48
Show Gist options
  • Save kiransubash/2951027c4384b10d4c380f7cce9498af to your computer and use it in GitHub Desktop.
Save kiransubash/2951027c4384b10d4c380f7cce9498af to your computer and use it in GitHub Desktop.
Copy content from a docker volume to host

Copy content from a docker volume to host

docker run --rm -v <volume>:/src -v $(pwd)/<dir>:/dest alpine sh -c 'cp -R /src/* /dest/'

Replace <volume> by the volume name & <dir> by a directory on the host (from the current location pwd)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment