Skip to content

Switch to the split docker-cli / docker-engine archives and source containerd and runc from their own releases - #592

Open
tianon wants to merge 1 commit into
docker-library:masterfrom
infosiftr:split
Open

tianon wants to merge 1 commit into
docker-library:masterfrom
infosiftr:split

Conversation

@tianon

@tianon tianon commented Nov 21, 2026

Copy link
Copy Markdown
Member

(probably somewhat over-engineered follow-up to #591 (comment))

download.docker.com's docker-cli_ / docker-engine_ archives (and its flat Windows zips) no longer bundle containerd or runc, so versions.sh now scrapes the CONTAINERD_VERSION and RUNC_VERSION series moby pins in its Dockerfile, resolves the latest patch release of each, and records per-architecture URLs and checksums for everything in versions.json. Architecture selection moves into a new generate-stackbrew-library.jq, so each variant is limited to the architectures that have everything it needs.

  • Install the engine from docker-engine_ (just bin), and only ctr and the shim from containerd's static tarball plus runc, each in its own checksummed RUN (the cli image takes bin/docker from docker-cli_)
  • Expand the flat Windows cli zip as-is into Program Files\Docker with Docker\bin on PATH, which leaves cli-plugins right where the CLI looks for it
  • Fetch rootless extras for every architecture that has them instead of only amd64 and arm64v8 (ppc64le and s390x join dind-rootless), and let the new intersection keep arm32 out of dind (containerd has no arm32 builds) while the cli image gains riscv64
  • Always verify downloads with sha256sum -c (download() used to skip it for rootless extras because not every architecture has them), and make missing or malformed checksums fatal
  • Fail loudly when amd64 or arm64v8 is missing any artifact, instead of quietly publishing less
  • Share the release-scraping, checksum-parsing, and artifact-fetching code in versions.sh instead of repeating it per project, with explicit error handling that no longer depends on errexit inside command substitutions

Drop the legacy dockerUrl fallbacks and the dead 29.8.2 branches now that 29.10.x is the only version here.

Assisted-By: "claude my eyes right out"

…ntainerd and runc from their own releases

download.docker.com's `docker-cli_` / `docker-engine_` archives (and its flat Windows zips) no longer bundle containerd or runc, so `versions.sh` now scrapes the `CONTAINERD_VERSION` and `RUNC_VERSION` series moby pins in its Dockerfile, resolves the latest patch release of each, and records per-architecture URLs and checksums for everything in `versions.json`.  Architecture selection moves into a new `generate-stackbrew-library.jq`, so each variant is limited to the architectures that have everything it needs.

- Install the engine from `docker-engine_` (just `bin`), and only `ctr` and the shim from containerd's static tarball plus `runc`, each in its own checksummed `RUN` (the cli image takes `bin/docker` from `docker-cli_`)
- Expand the flat Windows cli zip as-is into `Program Files\Docker` with `Docker\bin` on PATH, which leaves `cli-plugins` right where the CLI looks for it
- Fetch rootless extras for every architecture that has them instead of only amd64 and arm64v8 (ppc64le and s390x join dind-rootless), and let the new intersection keep arm32 out of dind (containerd has no arm32 builds)
- Always verify downloads with `sha256sum -c` (`download()` used to skip it for rootless extras because not every architecture has them), and make missing or malformed checksums fatal
- Fail loudly when amd64 or arm64v8 is missing any artifact, instead of quietly publishing less
- Share the release-scraping, checksum-parsing, and artifact-fetching code in `versions.sh` instead of repeating it per project, with explicit error handling that no longer depends on `errexit` inside command substitutions

Drop the legacy `dockerUrl` fallbacks and the dead `29.8.2` branches now that 29.10.x is the only version here.

Assisted-By: "claude my eyes right out"
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.

2 participants