Catch invalidation
Find broad copies, missing cache mounts, oversized contexts, unsafe secrets, and broken GHA cache scopes.
cache-is-king doctor .Find the Docker cache layer that failed—from invalidation and BuildKit transport to page-cache refaults, storage reads, PSI, and export tax.
Needs Go 1.23+. Or download a prebuilt Linux/macOS binary from the v0.1.0 release.
Sample report, illustrative values
Docker reports logical reuse. Cache Is King adds repository structure, BuildKit phase attribution, and the kernel signals that reveal whether reuse was actually cheap.
Find broad copies, missing cache mounts, oversized contexts, unsafe secrets, and broken GHA cache scopes.
cache-is-king doctor .Run isolated cold and warm builds and separate context, metadata, execution, cache transport, and export work.
cache-is-king docker --runs 3 .Compare default Linux, MGLRU, and cache_ext policies using warm time, refaults, reads, PSI, and cache ratio.
cache-is-king compare default=a.json s3fifo=b.jsonThe viewer runs entirely in your browser. Reports contain measurements and findings—not source files, build logs, or secrets.
Persistent builder state can retain cache mounts and avoid repeated cache transfer. But persistent bytes can still be physically cold.
One-size-fits-all page eviction may retain streaming Docker work while evicting the small compiler hot set the next build needs.