-
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
Error on cache query #569
Comments
Does this happen again? Maybe temporary glitch trying to get |
The value of @tiborvass I think we should at least suppress this error. |
@tonistiigi in #62 (comment) you've mentioned that
How can I achieve that? Pushing an image built with buildkit doesn't seem to do it. Is there and extra parameter for Edit: found that it's a current limitation of experimental implementation (moby/moby#37151) |
Tried building an image with buildkit using If I understood correctly I was expecting that when the
Tried a different repository (Gitlab), and got a 403 instead:
Pushing and pulling works just fine on both registries. |
@nielskrijger the problem is that BuildKit uses a different cache format. To use --cache-from with BuildKit you need to export BuidKit cache first. Unfortunately, it's currently impossible with |
Thank you @RytisLT for explaining it again. It finally "clicked" what the your previous comment was about... and I am starting to understand the difficulty of the problem. Is it possible to make the error more clear in these circumstances? Existing v2 registries fetching cache manifests built with Buildkit are now returning (401, 403) it seems. Similarly the |
I'd expect this behavior to be implemented using a new command-line argument and the old |
This has been fixed by inline cache support #777 (in Docker 19.03) |
@tonistiigi can we post a link to relevant documentation to how this issue is fixed by #777 |
I still come across this error when run CI pipeline in gitlab and gitlab registry. Is there any workaround for this error? @tonistiigi @RytisLT @manishtomar thanks |
Hello @zengqingfu1442 I am getting this issue. Did you solve it at the end? Thank you in advance and regards. p.s. I see it has been solve in version 19.03 ok I will give it a try |
Upgrade your docker version to the latest 20.10.7. |
Image is failing to build when
--cache-from
flag is passed to docker build:I am not sure should the issue be posted here or in https://github.com/docker/cli
The text was updated successfully, but these errors were encountered: