Use Docker static binary instead of apt repository
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 1m9s

Simplify Docker installation by downloading the static binary
directly. This avoids repository/OS version detection issues
and ensures we get a recent Docker client with API v1.44+.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Kevin Sivic 2025-12-01 01:00:16 -05:00
parent e9d0de405c
commit c70f8b594f

View file

@ -16,15 +16,11 @@ jobs:
- name: Set up Docker
run: |
echo "DOCKER_HOST: ${DOCKER_HOST}"
# Install Docker from official repository to get newer version
apt-get update -qq
apt-get install -y -qq ca-certificates curl
install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
chmod a+r /etc/apt/keyrings/docker.asc
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null
apt-get update -qq
apt-get install -y -qq docker-ce-cli
# Download Docker static binary for newer API version
apt-get update -qq && apt-get install -y -qq curl
curl -fsSL https://download.docker.com/linux/static/stable/x86_64/docker-27.4.1.tgz | tar xz
mv docker/docker /usr/local/bin/
rm -rf docker
docker version
- name: Checkout repository