Repository navigation
v0.4.0
Two places where disk space hides from docker system df, both measured on disposable Engine 28.5 and 29.9 daemons (verification log).
Added
- buildx builders. A builder made with
docker buildx create --driver docker-containerkeeps its whole cache in the volumebuildx_buildkit_<node>_state.- In the test, df's build cache row said 0 B while the builder held 70 MiB.
docker builder prune -affreed nothing;docker buildx prune --builder=cifreed 71 MiB.- dockdu now lists these builders under BUILD CACHE, marks their volumes and prints the prune command for each builder.
--disk: overlay2 by owner. The directories underoverlay2/are split into image layers, container layers and directories with no record, using the graph driver's own layer records.- When the unrecorded part is at least 64 MiB and at least a tenth of overlay2, more than all private build cache could explain, dockdu reports it as likely leftovers and lists the largest directories.
- No Docker command lists such leftovers, and no prune removes them.
- Images hidden by the containerd image store. After a switch to the containerd image store, Docker hides the old overlay2 images but keeps them on disk.
- In the test:
docker system df0 B,docker system prune -affreed 0 B, 71.8 MiB on disk. - dockdu reports this even without
--disk.
- In the test:
Changed
- With
--disk, dockdu also reads the overlay2 layer ID files. Each holds only a short ID and is read throughos.Root. No new Docker API call; JSON only gains keys,schema_versionstays 1.
Full list: CHANGELOG
brew upgrade dockdu # or: brew install maximilianfeix/tap/dockdu
go install github.com/maximilianfeix/dockdu/cmd/dockdu@v0.4.0
docker run --rm -v /var/run/docker.sock:/var/run/docker.sock:ro -v /var/lib/docker:/var/lib/docker:ro ghcr.io/maximilianfeix/dockdu:v0.4.0