Skip to content

ci: install the e2e engine with docker/setup-docker-action - #14456

Merged
ndeloof merged 1 commit into
docker:mainfrom
glours:ci-e2e-setup-docker-action
Nov 4, 2026
Merged

ndeloof merged 1 commit into
docker:mainfrom
glours:ci-e2e-setup-docker-action

Conversation

@glours

@glours glours commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

The e2e oldstable jobs fail at "Install Docker 28": ubuntu-latest is now 26.04, and Docker's apt repository for that release only ships 29.x, so get-docker.sh --version 28 finds nothing.

Install the engine with docker/setup-docker-action instead, with binaries that don't depend on the distribution:

  • stable rows use latest (the default archive source). oldstable rows use the image source with the 28 tag (type=image,tag=28), a floating major tag that avoids pinning a minor and patch version. When a new major ships, switch that tag to the previous major.
  • the image source isn't used for stable: moby/moby-bin:29 and :latest are still 29.9.1 while dockereng/cli-bin is at 29.9.3, which would pair a newer CLI with an older engine.
  • the containerd image store is set through daemon-config; the existing io.containerd.snapshotter.v1 assertion is kept.
  • the action starts its own dockerd on a dedicated socket, selected with set-host: true (DOCKER_HOST).
  • the e2e framework now forwards DOCKER_HOST to the commands it runs, next to DOCKER_CONTEXT: it runs them with a minimal environment and a temporary DOCKER_CONFIG, so it would otherwise reach the runner's preinstalled daemon. A named context doesn't work as a replacement: buildx then loses the builder selected with buildx create --use, which breaks TestBuildEntitlements, TestBuildPrivileged and TestBuildPlatformsWithCorrectBuildxConfig.
  • TestBuildTLS clears DOCKER_HOST, which takes precedence over the DOCKER_CONTEXT it sets for its dind builder.
  • Set up Docker Model now configures Docker's apt repository first (get-docker.sh --setup-repo), which the action doesn't do.

🤖 Generated with Claude Code

@glours
glours requested review from a team as code owners November 4, 2026 13:52
@glours
glours requested a review from ndeloof November 4, 2026 13:52

@docker-agent docker-agent left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assessment: 🟢 APPROVE

Lower-confidence findings (not posted inline)

  • [low] .github/workflows/ci.yml:253 — DOCKER_CONTEXT=setup-docker-action relies on the action creating a context with that exact name (confidence: weak 52/100)

@glours
glours force-pushed the ci-e2e-setup-docker-action branch 3 times, most recently from 2ee9ecb to 004012c Compare November 4, 2026 14:32
@glours
glours requested a review from docker-agent November 4, 2026 14:32

@docker-agent docker-agent left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assessment: 🟢 APPROVE

@codecov

codecov Bot commented Nov 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

ndeloof
ndeloof previously approved these changes Nov 4, 2026
The e2e job installed Docker through get-docker.sh, which resolves
packages from the distribution's apt repository. ubuntu-latest moved to
26.04, whose repository has no Docker 28, so the oldstable rows could
no longer install their engine.

Install it with docker/setup-docker-action instead, with binaries that
do not depend on the distribution: stable follows the latest release,
oldstable follows the 28 image tag. The action starts its engine on its
own socket, selected with set-host, so the e2e framework now forwards
DOCKER_HOST, and TestBuildTLS clears it to keep reaching its dind
builder.

Signed-off-by: Guillaume Lours <glours@users.noreply.github.com>
@glours
glours force-pushed the ci-e2e-setup-docker-action branch from 004012c to 186245d Compare November 4, 2026 15:03
@glours
glours enabled auto-merge (rebase) November 4, 2026 15:22
@ndeloof
ndeloof disabled auto-merge November 4, 2026 16:15
@ndeloof
ndeloof merged commit 7aafdd8 into docker:main Nov 4, 2026
61 checks passed
@ndeloof
ndeloof deleted the ci-e2e-setup-docker-action branch November 4, 2026 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants