CI: simplify docker CLI install — use docker.io from Ubuntu repos
Replaces docker-ce-cli (requiring external Docker apt repo) with docker.io from Ubuntu 24.04 main, which is sufficient for docker login and working alongside buildx. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -29,11 +29,7 @@ RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash - && \
|
|||||||
apt-get clean && rm -rf /var/lib/apt/lists/*
|
apt-get clean && rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# Docker CLI — daemon comes from the host socket mount, only CLI needed.
|
# Docker CLI — daemon comes from the host socket mount, only CLI needed.
|
||||||
RUN install -m 0755 -d /etc/apt/keyrings && \
|
# docker.io from Ubuntu repos is sufficient for docker login + buildx.
|
||||||
curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc && \
|
RUN apt-get update -qq && \
|
||||||
chmod a+r /etc/apt/keyrings/docker.asc && \
|
apt-get install -y -qq docker.io && \
|
||||||
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" \
|
|
||||||
> /etc/apt/sources.list.d/docker.list && \
|
|
||||||
apt-get update -qq && \
|
|
||||||
apt-get install -y -qq docker-ce-cli && \
|
|
||||||
apt-get clean && rm -rf /var/lib/apt/lists/*
|
apt-get clean && rm -rf /var/lib/apt/lists/*
|
||||||
|
|||||||
Reference in New Issue
Block a user