feat: add docker disk usage details#4573
Open
agentHits wants to merge 2 commits into
Open
Conversation
53a64c6 to
7b110b0
Compare
Author
|
Rebased on latest Checks run:
CI may remain in |
Author
|
@Siumauricio this PR now has a linked feature request (#4651), was rebased on the latest |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 dffor the summary and now also parsesdocker system df -vfor 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:
canarybranch.Testing
corepack pnpm --dir apps/dokploy exec vitest --config __test__/vitest.config.ts __test__/monitoring/docker-disk-usage.test.ts --runcorepack 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.tscorepack pnpm --filter=dokploy run typecheckcorepack pnpm --filter=server run typecheckcorepack pnpm --filter=dokploy run build-servercorepack pnpm --filter=dokploy run build-nextcorepack pnpm --filter=server run buildhttp://localhost:3000/dashboard/monitoringwith Docker Disk Usage details visible for Images, Containers, Volumes, and Build Cache.Note:
corepack pnpm format-and-lintstill 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)