Skip to content

feat: add docker disk usage details#4573

Open
agentHits wants to merge 2 commits into
Dokploy:canaryfrom
agentHits:feat/docker-disk-usage-details
Open

feat: add docker disk usage details#4573
agentHits wants to merge 2 commits into
Dokploy:canaryfrom
agentHits:feat/docker-disk-usage-details

Conversation

@agentHits

@agentHits agentHits commented Jun 7, 2026

Copy link
Copy Markdown

What is this PR about?

This PR adds detailed breakdown data to the existing Docker Disk Usage card on the Monitoring page. The current chart shows the high-level Docker disk categories; this change keeps that summary and adds the largest entries underneath each category so users can see what is taking space under Images, Containers, Volumes, and Build Cache.

The backend still uses docker system df for the summary and now also parses docker system df -v for per-entry details. The UI shows the top entries by size for each category, including container names, image names, volume names, build cache records, and relevant metadata such as reclaimable space, active/total counts, shared/unique image size, local volume links, and build cache usage.

The detailed breakdown can be collapsed and expanded from the card header, so the chart remains compact when users only need the total usage summary.

Checklist

Before submitting this PR, please make sure that:

  • You created a dedicated branch based on the canary branch.
  • You have read the suggestions in the CONTRIBUTING.md file https://github.com/Dokploy/dokploy/blob/canary/CONTRIBUTING.md#pull-request
  • You have tested this PR in your local instance. If you have not tested it yet, please do so before submitting. This helps avoid wasting maintainers' time reviewing code that has not been verified by you.

Testing

  • corepack pnpm --dir apps/dokploy exec vitest --config __test__/vitest.config.ts __test__/monitoring/docker-disk-usage.test.ts --run
  • corepack pnpm exec biome check apps/dokploy/__test__/monitoring/docker-disk-usage.test.ts apps/dokploy/components/dashboard/monitoring/free/container/docker-disk-usage-chart.tsx packages/server/src/utils/docker/utils.ts
  • corepack pnpm --filter=dokploy run typecheck
  • corepack pnpm --filter=server run typecheck
  • corepack pnpm --filter=dokploy run build-server
  • corepack pnpm --filter=dokploy run build-next
  • corepack pnpm --filter=server run build
  • Tested locally at http://localhost:3000/dashboard/monitoring with Docker Disk Usage details visible for Images, Containers, Volumes, and Build Cache.
  • Tested the Docker Disk Usage details toggle locally: Hide details collapses the breakdown and Show details expands it again.

Note: corepack pnpm format-and-lint still reports existing unrelated issues outside this PR's files; the targeted Biome check for the touched files passes.

Issues related (if applicable)

Closes #4651

Screenshots (if applicable)

Docker Disk Usage details toggle

@agentHits agentHits requested a review from Siumauricio as a code owner June 7, 2026 18:04
@dosubot dosubot Bot added size:L This PR changes 100-499 lines, ignoring generated files. enhancement New feature or request labels Jun 7, 2026
@agentHits agentHits force-pushed the feat/docker-disk-usage-details branch from 53a64c6 to 7b110b0 Compare June 17, 2026 03:00
@agentHits

Copy link
Copy Markdown
Author

Rebased on latest canary (439f57566) and re-verified locally after rebase.

Checks run:

  • corepack pnpm install --frozen-lockfile
  • corepack pnpm --filter=dokploy exec vitest run --config __test__/vitest.config.ts __test__/monitoring/docker-disk-usage.test.ts
  • corepack pnpm exec biome check apps/dokploy/__test__/monitoring/docker-disk-usage.test.ts apps/dokploy/components/dashboard/monitoring/free/container/docker-disk-usage-chart.tsx packages/server/src/utils/docker/utils.ts
  • corepack pnpm --filter=dokploy run typecheck
  • corepack pnpm --filter @dokploy/server run typecheck

CI may remain in action_required until GitHub Actions is approved for this fork PR.

@agentHits

Copy link
Copy Markdown
Author

@Siumauricio this PR now has a linked feature request (#4651), was rebased on the latest canary, and was re-verified locally after rebase. Could you please review it when you have time and approve the GitHub Actions workflow run for this fork PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Show detailed Docker disk usage entries in monitoring

1 participant