Image builds no longer depend on resolving the unpinned Dockerfile syntax image on Docker Hub #381

Closed
opened 2026-11-12 05:17:35 -05:00 by claude · 0 comments
Owner

What happens

Two "Build Binary" jobs of run 1463 failed before building anything:

ERROR: failed to do request: Head "https://registry-1.docker.io/...": net/http: timeout awaiting response headers
ERROR: failed to build: failed to solve: DeadlineExceeded: failed to resolve source metadata for docker.io/docker/dockerfile:1

Dockerfile and docker/ci.Dockerfile start with # syntax=docker/dockerfile:1. BuildKit resolves that tag on Docker Hub on every build, also when every base image is already cached, so one slow answer from Docker Hub fails the job. A re-run passed.

Why it matters

  • It is a network dependency on every builder and image build of every run.
  • It is the one image reference the weekly pin bump does not cover: the tag 1 moves, and nothing pins its digest, unlike every base image.

Wanted

Decide between:

  • removing the # syntax= line where the built-in Dockerfile frontend of the runner's BuildKit is enough (check which features the two files use, for example --mount and heredocs), or
  • pinning it as docker/dockerfile:<version>@sha256:<digest> and teaching bump-pins.sh to move it, preferably from a mirror the runner already uses (public.ecr.aws) if one carries it.

Acceptance

  • A build with warm caches makes no request to Docker Hub for the frontend, or the reference is pinned by digest and covered by the bump.
  • bump-pins.test.sh covers the new pin if there is one.
## What happens Two "Build Binary" jobs of run 1463 failed before building anything: ``` ERROR: failed to do request: Head "https://registry-1.docker.io/...": net/http: timeout awaiting response headers ERROR: failed to build: failed to solve: DeadlineExceeded: failed to resolve source metadata for docker.io/docker/dockerfile:1 ``` `Dockerfile` and `docker/ci.Dockerfile` start with `# syntax=docker/dockerfile:1`. BuildKit resolves that tag on Docker Hub on every build, also when every base image is already cached, so one slow answer from Docker Hub fails the job. A re-run passed. ## Why it matters - It is a network dependency on every builder and image build of every run. - It is the one image reference the weekly pin bump does not cover: the tag `1` moves, and nothing pins its digest, unlike every base image. ## Wanted Decide between: - removing the `# syntax=` line where the built-in Dockerfile frontend of the runner's BuildKit is enough (check which features the two files use, for example `--mount` and heredocs), or - pinning it as `docker/dockerfile:<version>@sha256:<digest>` and teaching `bump-pins.sh` to move it, preferably from a mirror the runner already uses (public.ecr.aws) if one carries it. ## Acceptance - A build with warm caches makes no request to Docker Hub for the frontend, or the reference is pinned by digest and covered by the bump. - `bump-pins.test.sh` covers the new pin if there is one.
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
lantea-one/ninlil#381
No description provided.