CI engineers can't keep Docker build cache mounts (like Maven or Gradle dependency folders) between CI runs.
CI engineers and developers who build Docker images with package manager caches
Where it stands
- Sourced (done)
- Kit (done)
- Wanted (next)
- Building
- Solved
How this problem came to be
- Found1 sourcegithub.com/moby
- Quoted4 claimseach checked against its page
- BriefWrittenand what solved looks like
- Market2 signals544 reactions on the issue
- Kit6 steps21 tools · 6 routes
- People0 want0 live it · 0 would test
The problem, broken down
- Who it hurts
- Engineers running Docker builds in CI, especially on GitHub Actions or self-hosted runners, who use RUN --mount=type=cache for build tool dependencies.
- The moment
- Each CI run downloads all dependencies again because the cache mount is not saved with the build cache.
- What people do today
- People cache the whole /var/lib/docker directory, dump the buildkit state directory into a tar file, or export cache out of the builder with extra build steps.
- Why it's unsolved
- The source says cache mounts are not tracked by cache keys and that importing and exporting them was deferred; the maintainer says the design is accepted but not being worked on.
- What solved looks like
- A cache mount declared in a Dockerfile can be saved to and restored from a registry or CI cache, and a second CI run on a fresh machine reuses the dependencies without downloading them.
Evidence lens
Every claim points at the quote it rests onSources
Claims
Builders still need to know
- How large are the dependency caches in real CI runs, and how long does a cold download take compared with restoring the cache?
- Would teams accept a cache store in a registry or CI artifact store, or do they need a local volume?
- How do teams know when a restored cache has grown too large and needs cleaning?
Drafted with claude-haiku-5-5 from the cited source and published automatically. Every quote was checked against the source.
Sources
From a public page with a citation.
What the source says, in short
Each CI run downloads all dependencies again because the cache mount is not saved with the build cache. People cache the whole /var/lib/docker directory, dump the buildkit state directory into a tar file, or export cache out of the builder with extra build steps. The source says cache mounts are not tracked by cache keys and that importing and exporting them was deferred; the maintainer says the design is accepted but not being worked on.
Forks 0
Nobody has forked this yet. Be the first.
Market read
How big this is, from the evidence
- Stack Overflow Developer Survey ↗Our estimate · Low confidenceAbout 71% of developers surveyed by Stack Overflow use Docker“Docker 71.1%”
- GitHub ↗Builders' pull · Medium confidence544 reactions on the issue
How these were measured: Stack Overflow's 2025 survey shows 71.1% of the 24,473 people who answered this question use Docker. This is the upper bound of who could hit this, since only people using BuildKit cache mounts in CI are affected. Total reactions on the GitHub issue, read from its API.
For whoever takes this up
The builder's path for this problem
A path written for this problem: its open questions, who to talk to, its data and its ideas, with tools for each stage and a starter prompt ready to paste into any assistant.
Open the pathDiscussion 0
No comments yet.