Skip to content

Instantly share code, notes, and snippets.

@nmrmsys
Last active November 29, 2017 06:54
Show Gist options
  • Save nmrmsys/497303aff5bb731a493b642b6e2a56fa to your computer and use it in GitHub Desktop.
Save nmrmsys/497303aff5bb731a493b642b6e2a56fa to your computer and use it in GitHub Desktop.
Command to display the volume used by the container
sudo docker ps -q | xargs docker inspect -f '{{.Config.Hostname}} {{.Name}}{{println}}{{range .Mounts}} {{.Name}} {{.Destination}}{{println}}{{end}}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment