HACKER Q&A
📣 gajus

Have you found a solution for sharing Docker cache between build agents?


Have you found a solution for sharing Docker cache between build agents?


  👤 gajus Accepted Answer ✓
I am familiar with solutions like Depot, but the problem with them is that they are also building on a remote host. We already have many powerful VMs setup for building. The only inefficiency is that they are not sharing cache layers. I could probably hack something together with rsync and such, but would ideally have a more robust solution.

👤 gladiatr72
Docker's distribution (formerly registry) with a redis cache, buildx using the cache-(fromĀ¦to) directives. There's another flag I'm forgetting that signals the builder to ship all layers.