From b9a8064371354052a574b23fbd6fe3fcb01b7889 Mon Sep 17 00:00:00 2001 From: Philippe Parage <69145356+pparage@users.noreply.github.com> Date: Wed, 17 Jun 2026 21:11:01 +0200 Subject: [PATCH] fix(setup): use Docker 29.4.2 on Ubuntu 26.04 to fix install failure The provisioning script pins DOCKER_VERSION=28.5.0 and passes it to get.docker.com via --version. Ubuntu 26.04 (resolute) ships a docker-ce repo with no 28.5.0, so the pin is not found in apt-cache madison and Docker is never installed, aborting setup with 'Failed to initialize Docker Swarm'. Repin to a version present on every architecture Docker ships resolute for. amd64/arm64/armhf start at 29.3.1, but the s390x pool only carries 29.4.0-29.4.2, so 29.3.1 still fails there; 29.4.2 is the newest version common to all shipped arches (ppc64le is not shipped for resolute). The override applies to Ubuntu 26.04 only; all other releases keep 28.5.0, and it runs before the install banner so the reported version stays accurate and both the full-server and build-server paths are covered. Fixes #4327, #4349. Closes #4501. --- packages/server/src/setup/server-setup.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/packages/server/src/setup/server-setup.ts b/packages/server/src/setup/server-setup.ts index e2d7fc3e53..557bb3b1b6 100644 --- a/packages/server/src/setup/server-setup.ts +++ b/packages/server/src/setup/server-setup.ts @@ -162,6 +162,17 @@ else OS_VERSION=$(grep -w "VERSION_ID" /etc/os-release | cut -d "=" -f 2 | tr -d '"') fi +# Ubuntu 26.04 (resolute) ships a docker-ce repo that has no 28.5.0, so the +# default pin is absent from apt-cache madison and get.docker.com aborts before +# installing Docker. Repin to a version present on every architecture Docker +# ships resolute for: amd64/arm64/armhf start at 29.3.1, but s390x only carries +# 29.4.0-29.4.2, so 29.4.2 is the newest version common to all of them. This +# must run after OS_VERSION is resolved and before the banner so the reported +# Docker version stays accurate. +if [ "$OS_TYPE" = "ubuntu" ] && [ "$OS_VERSION" = "26.04" ]; then + DOCKER_VERSION=29.4.2 +fi + if [ "$OS_TYPE" = 'amzn' ]; then $SUDO_CMD dnf install -y findutils >/dev/null fi