-
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
Build fails when FROM image isn't cached #1271
Comments
Is this error persistent or did you just get it once? |
Here is what I did just now:
So seems to be persistent |
Please post |
I made a minimal docker file now. Adding more info
Might have something to do with
? Will look into getting the logs |
This seems to be caused by the mirror being configured while the mirror doesn't actually contain the image you are trying to use. Note that this is different from the behavior of the mirror mode in the upstream registry where it proxies to the origin registry if no local data is found. The capability to request from other registries if mirrors return errors was only added to containerd very recently and buildkit/docker has not been updated to the new logic yet. If you would like to help, the change would be to move from using |
For those still having issues with this, we configured a global env var: |
At least with cloudbuild, likely related to moby/buildkit#1271
I'm still having issues with this as well, I had to disable buildkit for one of my docker builds. Maybe this should be reopened? |
Signed-off-by: Pedro Tôrres <[email protected]>
use docker login command and then provide user login account detail once login success then try again docker build command |
This should be fixed in Buildkit v0.7+ / Docker 20.10 and iirc from some trace I saw it was also fixed on gcr side. If you still see this open a new issue with reproduction steps. |
@Lakshpiya Creating an account / signing in does not help. I experience the same issue. I have to run an initial build with docker infoClient: Context: default Debug Mode: false Plugins: app: Docker App (Docker Inc., v0.9.1-beta3) buildx: Build with BuildKit (Docker Inc., v0.5.1-docker) scan: Docker Scan (Docker Inc., v0.5.0) |
there are issues with containerd+buildkit when referencing an image that is not already cached. See moby/buildkit#1271. Instead, we explicity pre-pull the image.
Same here. I got this issue after pruning and was unable to recover. Only |
This issue seems to be returned. Same here. |
Same here. |
I'm using the latest version of buildx, but I don't know which version of buildkit is being used. Is there any way to check the version of buildkit being used? |
@felipecrs Running |
Oh nice. I tried only docker version. |
Same issue here: I had to ENABLE Anyway, I thought "What a good reminder to move ahead and enable Buildkit". Well, now I get this exact error as well. Gonna just pin our build image to a previous release, as I should have, from the start. |
Same here: DOCKER_BUILDKIT=0 solves the problem (or docker pull the image first also works). |
I too have started seeing this last week: |
I ran into this same issue.
Solved it by running |
@rgeraads solution worked like a charm |
I got this problem because I have a typo in my |
Our organization faced with the same issue only after moving to the new office building. We still have the same network configuration except network bandwidth - it was increased from 100Mb/s to 1Gb/s. It's very odd. 😳 We can't research this issue quickly to proof or refute the bandwidth impact. We use a local Docker repository (Nexus) as a mirror (hosted and proxy repos). Some images pull from this repository, some images pull directly from Docker Hub. The issue happens for both kind of images randomly. It seems not to be an internet provider issue. Because of random nature of the issue, it isn't reproducible for us. The issue happens on Docker 19.03 with BuildKit, without buildx. Today we did the upgrade of the Docker to 20.10 with buildx 0.5.1. Will keep watching. Upd 1 [16.06.2021]: In our case the issue still happens after upgrading Docker version. Upd 2 [16.06.2021]: In our case it seems to be a problem with pull rate limit on Nexus side when it tries to pull images from Docker Hub. |
Pulling the base image and then running docker build resolved the issue. No change to DOCKER_BUILDKIT=1 |
I just modified the "credsStore" of docker.config as below and solved the problem. { |
I just wanna set this thing on fire after 3 hours of debugging. DOCKER_BUILDKIT=0 solved this issue
|
My recent experience: |
Signed-off-by: Pedro Tôrres <[email protected]>
My dockerfile has a first line like:
When building this, I get the following error:
If I
docker pull docker.io/library/golang:1.13.4
everything worksAny suggestions? Is this user error? I assume not since it works with standard
docker build
but maybe I missed some docs around thisThe text was updated successfully, but these errors were encountered: