Skip to content

Instantly share code, notes, and snippets.

@flrichar
Created February 20, 2020 14:42
Show Gist options
  • Select an option

  • Save flrichar/de4b298f47a6031fd4c81363528daaa5 to your computer and use it in GitHub Desktop.

Select an option

Save flrichar/de4b298f47a6031fd4c81363528daaa5 to your computer and use it in GitHub Desktop.
dvolume, dir/ls command for docker volume dirs
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