Created
May 23, 2018 16:21
-
-
Save ccat3z/9921226781f044be35581b360a16ef3c to your computer and use it in GitHub Desktop.
Find all volumes in a docker container
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
docker inspect -f '{{ range $index, $mount := .Mounts }}{{ if eq $mount.Type "volume"}}{{ $mount.Name }} {{ end }}{{ end }}' $NAME |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment