-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to efficiently cache docker layer in CI with kbld? #208
Comments
There's no special pattern for caching docker layers in CI; As noted in #43 (apt reference, 👍🏻 ), there's some design work left to start the integration with docker buildx. That issue is a great place to further the larger conversation. At this time, this work is not currently on the maintainer's roadmap. That said, we would be delighted and do our best to support any community efforts to do so. |
Hi @pivotaljohn thanks. It would be great to hear how caching is solved in general in your experience. Especially, when kbld limits you to use just |
@StarpTech im not versed in buildx. how does it help in this scenario? does it cache layers in a registry, and downloads it from there? how do you see kbld integration to play out here (what is the command kbld should be calling to use buildx)? |
Basically, yes. https://github.com/moby/buildkit#cache Rebuilding all images is unusable. Especially in the CI where the storage ephemeral. |
@StarpTech would you be able to share what kind of command you would-want/already to be running? (we probably need a bit more hand holding from users like you on how to integrate with buildkit) |
added |
Hi, I know kbld is builder neutral, but what's the best practice to cache docker layers in the CI? As far I know, the default docker CLI is very limited when it comes to caching.
docker buildx
has much better support, but kbld doesn't support it yet #43The text was updated successfully, but these errors were encountered: