From d2cf5c5adc5f78ae3e4c23b8df671a7a9503a06b Mon Sep 17 00:00:00 2001 From: Gavin Lucas Date: Mon, 16 Nov 2026 10:14:14 +0000 Subject: [PATCH 1/2] Record image_build's classic-builder dependency as an SDK audit exclusion The monthly docker-py audit flags image_build as depending on deprecated surface: the Engine's classic builder, still the /build default but deprecated since v23.0 with no removal version. Without an entry here each audit rediscovers it. docker-py 7.2.0's build() has no builder version, so the public SDK cannot ask for BuildKit. The Engine does not need it to: POST /build?version=2 with the context as the request-body tarball built with BuildKit against a live daemon (API 1.56), with no session and no CLI. The entry therefore records the move as deferred rather than impossible, with its costs (the progress stream becomes encoded BuildKit traces, and a daemon advertising builder 1 still needs the classic path) and the three events that should reopen it. --- architecture/docker-sdk.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/architecture/docker-sdk.md b/architecture/docker-sdk.md index 58a5a00..d7098c6 100644 --- a/architecture/docker-sdk.md +++ b/architecture/docker-sdk.md @@ -147,6 +147,23 @@ re-files the same rejected candidates forever. Removing an entry is a real decis as covered: `buildx_imagetools_inspect` handles attestations, with `scout_sbom` and `registry_manifest` nearby. The residue is a local-only image, since imagetools resolves against a registry. Narrow, and unasked for. +- **`image_build` on the Engine's classic builder** - deprecated surface we depend on, kept for now. + The Engine spec marks `/build`'s `version=1` "the first generation classic (deprecated) builder" + and still makes it the default; moby's deprecation list has carried it since v23.0 with no removal + version, and it remains the only builder for native Windows images. docker-py 7.2.0's + `BuildApiMixin.build()` has no `version` parameter, so the public SDK cannot ask for BuildKit + (upstream issue docker/docker-py#2230, open since 2019; docker/docker-py#3344, which adds one, idle + since 2025). The Engine itself does not need the SDK's help: `POST /build?version=2` with the + context as the request-body tarball builds with BuildKit, no session and no CLI, and reports the + image as a `moby.image.id` aux message - checked against a live daemon at API 1.56. So moving + `image_build` onto BuildKit is possible through docker-py's private request helpers (the second + rung of the ladder above), and is deferred rather than declined. What it costs: BuildKit streams + progress as encoded `moby.buildkit.trace` messages rather than text lines, so the readable build + log is lost unless they are decoded, and a daemon that advertises builder version 1 (a Windows + daemon, or one configured that way) still needs the classic path. `buildx_build` is the BuildKit + path today, through the CLI, and `image_build`'s docstring points there. Revisit when docker-py + adds a builder `version`, when the move is scheduled, or when an Engine release removes the + classic builder - whichever comes first. - **Engine plugin authoring: `POST /plugins/create`, `POST /plugins/{name}/push`** - deliberately not wrapped, on the merits; do not re-add `plugin_create` or `plugin_push` (removed in #262). Building and publishing an Engine plugin is a build-pipeline job for the `docker plugin` CLI, not From 6dba8999f15e1de42396295c9d7728c4fdf7779e Mon Sep 17 00:00:00 2001 From: Gavin Lucas Date: Mon, 16 Nov 2026 10:23:11 +0000 Subject: [PATCH 2/2] Drop dated state from the image_build exclusion entry The entry restated things other documents hold and that will go stale: moby's removal-version status, how long the upstream docker-py issues have been open or idle, which daemon the check ran against, and 'for now' and 'today' wording. It now names where to look for each instead, keeping the reasoning. The live-daemon check stays recorded in the previous commit's message. --- architecture/docker-sdk.md | 32 +++++++++++++++----------------- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/architecture/docker-sdk.md b/architecture/docker-sdk.md index d7098c6..f550044 100644 --- a/architecture/docker-sdk.md +++ b/architecture/docker-sdk.md @@ -147,23 +147,21 @@ re-files the same rejected candidates forever. Removing an entry is a real decis as covered: `buildx_imagetools_inspect` handles attestations, with `scout_sbom` and `registry_manifest` nearby. The residue is a local-only image, since imagetools resolves against a registry. Narrow, and unasked for. -- **`image_build` on the Engine's classic builder** - deprecated surface we depend on, kept for now. - The Engine spec marks `/build`'s `version=1` "the first generation classic (deprecated) builder" - and still makes it the default; moby's deprecation list has carried it since v23.0 with no removal - version, and it remains the only builder for native Windows images. docker-py 7.2.0's - `BuildApiMixin.build()` has no `version` parameter, so the public SDK cannot ask for BuildKit - (upstream issue docker/docker-py#2230, open since 2019; docker/docker-py#3344, which adds one, idle - since 2025). The Engine itself does not need the SDK's help: `POST /build?version=2` with the - context as the request-body tarball builds with BuildKit, no session and no CLI, and reports the - image as a `moby.image.id` aux message - checked against a live daemon at API 1.56. So moving - `image_build` onto BuildKit is possible through docker-py's private request helpers (the second - rung of the ladder above), and is deferred rather than declined. What it costs: BuildKit streams - progress as encoded `moby.buildkit.trace` messages rather than text lines, so the readable build - log is lost unless they are decoded, and a daemon that advertises builder version 1 (a Windows - daemon, or one configured that way) still needs the classic path. `buildx_build` is the BuildKit - path today, through the CLI, and `image_build`'s docstring points there. Revisit when docker-py - adds a builder `version`, when the move is scheduled, or when an Engine release removes the - classic builder - whichever comes first. +- **`image_build` on the Engine's classic builder** - deprecated surface we depend on, deferred + rather than declined. The classic builder is `/build`'s `version=1`, which the Engine spec marks + deprecated and uses as the default; its status and any removal version are in moby's deprecation + list under "Legacy builder for Linux images", and it is what a daemon building native Windows + images uses. docker-py 7.2.0's `BuildApiMixin.build()` has no `version` parameter, so the public + SDK cannot ask for BuildKit (upstream: docker/docker-py#2230, and docker/docker-py#3344, which adds + one). The Engine itself does not need the SDK's help: `POST /build?version=2` with the context as + the request-body tarball builds with BuildKit, with no session and no CLI, and reports the image as + a `moby.image.id` aux message. So moving `image_build` onto BuildKit is possible through + docker-py's private request helpers (the second rung of the ladder above). What it costs: BuildKit + streams progress as encoded `moby.buildkit.trace` messages rather than text lines, so the readable + build log is lost unless they are decoded, and a daemon that advertises builder version 1 still + needs the classic path. `buildx_build` is the BuildKit route, through the CLI, and `image_build`'s + docstring points there. Revisit when docker-py adds a builder `version`, when the move is + scheduled, or when an Engine release removes the classic builder - whichever comes first. - **Engine plugin authoring: `POST /plugins/create`, `POST /plugins/{name}/push`** - deliberately not wrapped, on the merits; do not re-add `plugin_create` or `plugin_push` (removed in #262). Building and publishing an Engine plugin is a build-pipeline job for the `docker plugin` CLI, not