Skip to content

Instantly share code, notes, and snippets.

@vetali
Created July 31, 2019 14:32
Show Gist options
  • Save vetali/07b371f0134cd251e8062cf3c1fb1730 to your computer and use it in GitHub Desktop.
Save vetali/07b371f0134cd251e8062cf3c1fb1730 to your computer and use it in GitHub Desktop.
List files in all docker volumes
for i in `docker volume ls -q`; do echo "volume: ${i}"; docker run --rm -it -v ${i}:/vol alpine:latest ls /vol; echo; done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment