docker_resource
List Docker images, volumes, and networks, and analyze disk usage to identify where space is consumed, including unused bytes.
Instructions
images, volumes and networks list what a host holds; disk counts what they take, with unused bytes apart from the total. An empty list means asked and found nothing, which is not the same as never asked. What a running container consumes right now is docker_container with stats.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | images, volumes and networks each list what the host holds — volumes with their size and how many containers hold them. disk answers where the space went: four groups, each with what it takes and what nothing uses. | |
| profile | No | Which Docker host, by profile name. Default: the profile marked as default. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| disk | No | ||
| count | No | ||
| action | No | ||
| images | No | ||
| legend | No | What the words in this answer mean. A key names the field before the value — "state=running", "containers[].health=unhealthy" — and only the values this answer used are listed. | |
| reason | No | ||
| volumes | No | ||
| networks | No | ||
| total_bytes | No |