Hacker News new | ask | show | jobs
by pepemon 1372 days ago
Please clarify what is "poorly cached" and what is your solution to be not so poorly cached in this context. Looks like you're overestimating blindly.
2 comments

If you run two jobs right after each other and the machine tries to pull the image separately for each one and redownloads the whole thing, then that's a poor cache. Modern practices make this relatively easy to accomplish by accident.
Especially for Docker, which is typically a daemon that runs in a different execution context as the CI job, which means you cannot just tell the CI job to cache some directory. Podman makes this easier but isn’t used as widely as Docker is.
a sibling comment to yours[0], from 'treesknees, addresses what a decent caching setup for this looks like.

> We've since started caching our images locally using Sonatype Nexus Repository Manager plus hosting our own registry for some simple things we used to be pulling from Docker Hub.

[0]: https://news.ycombinator.com/item?id=32931044