Skip to content

Instantly share code, notes, and snippets.

@cgimenes
Created July 5, 2025 22:23
Show Gist options
  • Save cgimenes/b59476f14868f480fe25ce503b9658da to your computer and use it in GitHub Desktop.
Save cgimenes/b59476f14868f480fe25ce503b9658da to your computer and use it in GitHub Desktop.
Copy a Docker volume
docker volume create --name <new_volume>
docker run --rm -it -v <old_volume>:/from -v <new_volume>:/to alpine ash -c "cd /from ; cp -av . /to"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment