---
title: "Docker disk usage (`docker system df`) for the control-plane host."
method: GET
path: "/nodes/{node_id}/docker-disk-usage"
tags: ["Nodes"]
---

# Docker disk usage (\`docker system df\`) for the control-plane host.

`GET /nodes/{node_id}/docker-disk-usage`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/nodes/{node_id}/docker-disk-usage`
- Auth: HTTP bearer

On-demand rather than sampled: walking every layer, rootfs and volume can
take seconds, so the server monitoring page fetches it when opened or when
the operator presses refresh. Node `0` only for now — a worker's daemon is
only reachable through its agent, which does not relay this yet, and the
error says exactly that instead of 404ing.

## Path parameters

- `node_id` integer, required

## Response `200`

Docker disk usage by category

- DockerDiskUsage: Result of `docker system df` for the control-plane host.
  - `api_version` string, nullable: Docker API version the daemon answered with, when it reported one (`Api-Version` header). Useful when a category shows `null` reclaimable bytes.
  - `build_cache` DockerDiskUsageCategory, required: One slice of the Docker disk-usage donut.
    - `active_count` integer, required: Objects currently in use (images referenced by a container, running containers, mounted volumes, in-use cache records).
    - `reclaimable_bytes` integer, nullable: Bytes `docker system prune` could free from this category. `null` when the daemon is older than API 1.52 and does not report it.
    - `size_bytes` integer, required: Bytes on disk attributed to this category.
    - `total_count` integer, required: Number of objects in this category (all images, all containers, …).
  - `collected_at` string, required: When this snapshot was taken (ISO 8601, UTC).
  - `containers` DockerDiskUsageCategory, required: One slice of the Docker disk-usage donut.
    - `active_count` integer, required: Objects currently in use (images referenced by a container, running containers, mounted volumes, in-use cache records).
    - `reclaimable_bytes` integer, nullable: Bytes `docker system prune` could free from this category. `null` when the daemon is older than API 1.52 and does not report it.
    - `size_bytes` integer, required: Bytes on disk attributed to this category.
    - `total_count` integer, required: Number of objects in this category (all images, all containers, …).
  - `images` DockerDiskUsageCategory, required: One slice of the Docker disk-usage donut.
    - `active_count` integer, required: Objects currently in use (images referenced by a container, running containers, mounted volumes, in-use cache records).
    - `reclaimable_bytes` integer, nullable: Bytes `docker system prune` could free from this category. `null` when the daemon is older than API 1.52 and does not report it.
    - `size_bytes` integer, required: Bytes on disk attributed to this category.
    - `total_count` integer, required: Number of objects in this category (all images, all containers, …).
  - `total_bytes` integer, required: Sum of the four category sizes.
  - `volumes` DockerDiskUsageCategory, required: One slice of the Docker disk-usage donut.
    - `active_count` integer, required: Objects currently in use (images referenced by a container, running containers, mounted volumes, in-use cache records).
    - `reclaimable_bytes` integer, nullable: Bytes `docker system prune` could free from this category. `null` when the daemon is older than API 1.52 and does not report it.
    - `size_bytes` integer, required: Bytes on disk attributed to this category.
    - `total_count` integer, required: Number of objects in this category (all images, all containers, …).

## Other responses

- `400`: Node is not the control plane
- `401`: Unauthorized
- `403`: Insufficient permissions
- `500`: Internal server error
- `502`: Docker daemon answered with an unexpected response
- `503`: Docker daemon unreachable
- `504`: Docker daemon timed out

## Changes

- **2026-09-11** `cac7526901ad`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/nodes/:node_id/docker-disk-usage/get.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
