feat: install docker buildx plugin in dind images

This commit is contained in:
sebthom 2025-07-21 12:47:05 +02:00
parent 5646d0a9f4
commit 8dc020d002
1 changed files with 8 additions and 2 deletions

View File

@ -121,14 +121,20 @@ RUN --mount=type=bind,source=.shared,target=/mnt/shared <<EOF
OS_CODENAME="$(source /etc/os-release && echo "$VERSION_CODENAME")"
echo "deb [arch=$ARCH signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian $OS_CODENAME stable" > /etc/apt/sources.list.d/docker.list
apt-get update
(set -x; apt-get install --no-install-recommends -y docker-ce docker-compose-plugin containerd.io fuse-overlayfs)
(set -x; apt-get install --no-install-recommends -y docker-ce docker-buildx-plugin docker-compose-plugin containerd.io fuse-overlayfs)
apt-get remove -y gnupg
apt-get autoremove -y
minimize /usr/bin/containerd* /usr/bin/ctr /usr/bin/docker* /usr/bin/runc
minimize \
/usr/bin/containerd* \
/usr/bin/ctr \
/usr/bin/docker* \
/usr/bin/runc \
/usr/libexec/docker/cli-plugins/*
docker --version
docker compose version
docker buildx version
runc --version
# https://github.com/docker/for-linux/issues/1437#issuecomment-1293818806