-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 export cache in buildkit #699
Comments
Note that this syntax may change soon #615 |
@tonistiigi Thanks for prompt reply. However, I've two problems:
Same when run with docker cli (after exporting
This is the dockerfile:
Is there any option that I'm missing with buildkit? As we don't have any way of exporting cache via docker cli at present, I wanted to use buildctl. Caching per build is super important in my use case. Great job BTW. Awesome tool. :-) |
Are you sure nothing in your build changed that would have caused the miss? If not please open issue with a reproducer. Looking at the output, one difference I see is the difference of the copy image (although the first cache mismatch is before that). You may want to use a fixed dockerfile implementation with
Maybe you can report this to ECR. There isn't anything special that registry should need for this. It is pushing a regular manifest list. Added to the opensource registry codebase in Docker 1.10 |
Ok. So I was debugging why AWS ECR is giving 400 bad request. When we push a normal image manifest, this is the request:
Content type : This is the request generated when we push cache image manifest:
Content type : I tried to send same request manually, this is the error I'm getting:
Is this something that is expected to be supported by the registries? If yes, will open a ticket on AWS ECR team. |
Yes, see |
Amazon ECR does not currently support manifest lists, but we are planning to add support (see here). |
Sure. Closing this issue. |
thx @samuelkarp |
@samuelkarp Your linked thread is dead with no replies. Any updates? |
@dreyks @eedwards-sk You can follow aws/containers-roadmap#505 for updates. |
I can't seem to figure out how to export cache from buildkit to registry/local. There seems no documentation around on how to do that.
I tried following unsuccessfully:
There is no indication of what's wrong here. (I'm able to successfully push image to registry) Would be grateful if someone could help with this.
Buildkit client version:
Buildkit daemon version:
The text was updated successfully, but these errors were encountered: