From 5b542d0c78abe4e0737f44bcfd1cfae2ab9d13b1 Mon Sep 17 00:00:00 2001 From: Fiodor Tretyakov Date: Sat, 31 Oct 2026 17:49:24 +0000 Subject: [PATCH] static: add windows/arm64 client package The cross-win target now also builds the CLI for windows/arm64 and packages it as build/win/arm64/docker-.zip, next to the amd64 zip. The arm64 package has docker.exe only, as dockerd is not built for windows/arm64. docker/cli already builds windows/arm64 (its "cross" and "bin-image-cross" bake targets), but download.docker.com/win/static/stable/ only has x86_64, so there is no static CLI for Windows on Arm. Signed-off-by: Fiodor Tretyakov --- static/Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/static/Makefile b/static/Makefile index 38fa32cef2..c107a59982 100644 --- a/static/Makefile +++ b/static/Makefile @@ -86,6 +86,11 @@ cross-win: cross-win-engine cp $(CLI_DIR)/build/docker-windows-amd64.exe build/win/amd64/docker/docker.exe cp $(ENGINE_DIR)/bundles/cross/win/dockerd.exe build/win/amd64/docker/dockerd.exe docker run --rm -v $(CURDIR)/build/win/amd64:/v -w /v alpine sh -c 'apk update&&apk add zip&&zip -r docker-$(GEN_STATIC_VER).zip docker' + # windows/arm64 (client only) + cd $(CLI_DIR) && VERSION=$(GEN_STATIC_VER) docker buildx bake --set binary.platform=windows/arm64 binary + mkdir -p build/win/arm64/docker + cp $(CLI_DIR)/build/docker-windows-arm64.exe build/win/arm64/docker/docker.exe + docker run --rm -v $(CURDIR)/build/win/arm64:/v -w /v alpine sh -c 'apk update&&apk add zip&&zip -r docker-$(GEN_STATIC_VER).zip docker' $(CHOWN) -R $(shell id -u):$(shell id -g) build .PHONY: cross-arm