Editing Docker volume ls
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 4: | Line 4: | ||
* <code>[[docker volume]] ls</code> | * <code>[[docker volume]] ls</code> | ||
* <code>[[docker volume ls --format]]</code> | * <code>[[docker volume ls --format]]</code> | ||
− | * | + | * [[docker volume ls --help]] |
== Examples == | == Examples == | ||
Line 54: | Line 54: | ||
* <code>[[podman volume ls]]</code> | * <code>[[podman volume ls]]</code> | ||
Docker list volumes associated with all containers: | Docker list volumes associated with all containers: | ||
− | * | + | * <nowiki>docker ps -a --format '{{ .ID }}' | xargs -I {} docker inspect -f '{{ .Name }}{{ printf "\n" }}{{ range .Mounts }}{{ printf "\n\t" }}{{ .Type }} {{ if eq .Type "bind" }}{{ .Source }}{{ end }}{{ .Name }} => {{ .Destination }}{{ end }}{{ printf "\n" }}' {}</nowiki> |
− | |||
== See also == | == See also == | ||
* {{Docker Volumes}} | * {{Docker Volumes}} | ||
* {{du}} | * {{du}} | ||
− | + | * {{docker}} | |
[[Category:Docker]] | [[Category:Docker]] |
Advertising: