Skip to content

Instantly share code, notes, and snippets.

@pedro-vasconcelos
Last active October 10, 2022 13:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pedro-vasconcelos/9626996726416924246d359ec465ae98 to your computer and use it in GitHub Desktop.
Save pedro-vasconcelos/9626996726416924246d359ec465ae98 to your computer and use it in GitHub Desktop.
Rename 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"
docker volume rm <old_volume>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment