Created
July 5, 2025 22:23
-
-
Save cgimenes/b59476f14868f480fe25ce503b9658da to your computer and use it in GitHub Desktop.
Copy a Docker volume
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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