Skip to content

Commit b9a8064

Browse files
committed
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.
1 parent 24b02f5 commit b9a8064

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

packages/server/src/setup/server-setup.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,17 @@ else
162162
OS_VERSION=$(grep -w "VERSION_ID" /etc/os-release | cut -d "=" -f 2 | tr -d '"')
163163
fi
164164
165+
# Ubuntu 26.04 (resolute) ships a docker-ce repo that has no 28.5.0, so the
166+
# default pin is absent from apt-cache madison and get.docker.com aborts before
167+
# installing Docker. Repin to a version present on every architecture Docker
168+
# ships resolute for: amd64/arm64/armhf start at 29.3.1, but s390x only carries
169+
# 29.4.0-29.4.2, so 29.4.2 is the newest version common to all of them. This
170+
# must run after OS_VERSION is resolved and before the banner so the reported
171+
# Docker version stays accurate.
172+
if [ "$OS_TYPE" = "ubuntu" ] && [ "$OS_VERSION" = "26.04" ]; then
173+
DOCKER_VERSION=29.4.2
174+
fi
175+
165176
if [ "$OS_TYPE" = 'amzn' ]; then
166177
$SUDO_CMD dnf install -y findutils >/dev/null
167178
fi

0 commit comments

Comments
 (0)