Created
February 20, 2020 14:42
-
-
Save flrichar/de4b298f47a6031fd4c81363528daaa5 to your computer and use it in GitHub Desktop.
dvolume, dir/ls command for docker volume dirs
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
| dvolume() { | |
| local volume volumes_to_list=${1:-$(docker volume ls --quiet)} | |
| for volume in $volumes_to_list; do | |
| sudo ls -lRa "$(docker volume inspect --format '{{ .Mountpoint }}' "$volume")" | |
| echo | |
| done | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment