The builder's path
For: CI engineers can't keep Docker build cache mounts (like Maven or Gradle dependency folders) between CI runs.
“Some things are under our control, while others are not under our control.”
Written for this problem
Start with 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 sources leave these open:
They can confirm the current status of cache mount import and export and what design they would accept.
Start from what is already published.
Build a small tool that packs a named cache mount's contents into a tarball or OCI artifact, pushes it to a container registry or CI artifact store, and restores it before the next build. Test it on one Maven or Gradle project against a cold download baseline.
Write a script that records cache mount size and cold download time per CI run, so a team can see whether restoring the cache is worth the transfer cost and when to prune it.
It is solved when: 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.
Routes to a solution
Each route is a different kind of journey, with real people and organisations to contact at each step, starting with those in every country.
Step 1
Build in the open
Publish the code and invite contributors from the community.
Let the people a free tool helps fund its maintainer directly.
Raise and spend money in the open for a community project.
Grants for open source that makes the internet better.
Network of civic tech groups in many countries; find the one near the problem.
Step 2
Fund the maintainers
Sponsors, collectives and open source grants.
Let the people a free tool helps fund its maintainer directly.
Raise and spend money in the open for a community project.
Grants for open source that makes the internet better.
Network of civic tech groups in many countries; find the one near the problem.
Step 3
Get it adopted
Civic tech groups and public bodies take it up.
Y Combinator's free course and co-founder matching.
Raise and spend money in the open for a community project.
Network of civic tech groups in many countries; find the one near the problem.
Volunteer data scientists working with social-sector organisations.
Ideas, sources and tools for this problem, from first interviews to funding.
Official overview of Docker build caching, including how cache is exported and imported.
Official description of the cache mount option used for build tool dependencies.
Describes how CI caches are stored, keyed and limited, which affects any restore design.
They can confirm the current status of cache mount import and export and what design they would accept.
Public teams running self-hosted CI can say whether registry storage or a local volume fits their policies and budgets.
Starter prompt
Built from this problem's brief. Paste it into Claude or any AI assistant.
Help me design and build a first working prototype for this problem in Anywhere. Problem: CI engineers can't keep Docker build cache mounts (like Maven or Gradle dependency folders) between CI runs. 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 it hurts: 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 is still 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. Where: Anywhere First, list what you would need to learn from the people affected before building, as interview questions. Then propose the simplest version that would help, the screens or messages it needs, and the data it would use. Keep it cheap to run, accessible, and respectful of people's privacy. Flag anything you are unsure about instead of guessing.
Talk to the people who live it before you build.
“The unexamined life is not worth living.”
ὁ δὲ ἀνεξέταστος βίος οὐ βιωτὸς ἀνθρώπῳ
Get a working version in front of people fast.
Using AI is not cheating. Every tool carries the work of the people who made it, and using it well is how knowledge has always moved forward. The thinking, the care for the people who live the problem, and the judgement are still yours.
“The Analytical Engine weaves algebraical patterns just as the Jacquard-loom weaves flowers and leaves.”
Open data that fits this problem.
“Lead me from the unreal to the real, from darkness to light.”
असतो मा सद्गमय। तमसो मा ज्योतिर्गमय।
asato mā sad gamaya, tamaso mā jyotir gamaya
Tools matched to what this problem needs.
“Keep moving, keep moving.”
चरैवेति चरैवेति
caraiveti caraiveti
Ship it responsibly, and find help and funding.
“Your right is to the work alone, never to its fruits.”
कर्मण्येवाधिकारस्ते मा फलेषु कदाचन
karmaṇy evādhikāras te mā phaleṣu kadācana
Kit generated with claude-haiku-5-5; every link was checked when it was made. Links go to each provider's own site. Zetema is not paid for any listing.
Take it to someone
Built from this problem's evidence. Fill in the [brackets], make it yours, and send it. Read every line first: it goes out under your name.
Ask someone who knows this problem for 20 minutes.