Created
July 31, 2019 14:32
-
-
Save vetali/07b371f0134cd251e8062cf3c1fb1730 to your computer and use it in GitHub Desktop.
List files in all docker volumes
This file contains 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
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