(no title)
matheus-rr | 4 days ago
What nobody tells you is that the cache mount is local to the builder daemon. If you're running builds on ephemeral CI instances, those caches are gone every build and you're back to square one. The registry cache backend exists to solve this but it adds enough complexity that most teams give up and just eat the slow builds.
The other underrated BuildKit feature is the ssh mount. Being able to forward your SSH agent into a build step without baking keys into layers is the kind of thing that should have been in Docker from day one. The number of production images I've seen with SSH keys accidentally left in intermediate layers is genuinely concerning.
amluto|4 days ago
stevenhuang|4 days ago
It's about not having the private keys stored unknowingly in intermediate layers of a build container.
candiddevmike|4 days ago
Let me have side effects, I'm a consenting adult and understand the consequences!!!