From 7cb4e05e5375b4cf3f91f75821c5b0916736eb46 Mon Sep 17 00:00:00 2001 From: Nikola Jokic Date: Thu, 8 Feb 2024 15:36:59 +0100 Subject: [PATCH] Remove dockerd but leave docker cli in the image. Bump docker version --- images/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/images/Dockerfile b/images/Dockerfile index 5edf6280f..4c59bd5ec 100644 --- a/images/Dockerfile +++ b/images/Dockerfile @@ -5,7 +5,7 @@ ARG TARGETOS ARG TARGETARCH ARG RUNNER_VERSION ARG RUNNER_CONTAINER_HOOKS_VERSION=0.4.0 -ARG DOCKER_VERSION=25.0.2 +ARG DOCKER_VERSION=25.0.3 ARG BUILDX_VERSION=0.12.1 RUN apt update -y && apt install curl unzip -y @@ -25,7 +25,7 @@ RUN export RUNNER_ARCH=${TARGETARCH} \ && if [ "$RUNNER_ARCH" = "amd64" ]; then export DOCKER_ARCH=x86_64 ; fi \ && if [ "$RUNNER_ARCH" = "arm64" ]; then export DOCKER_ARCH=aarch64 ; fi \ && curl -fLo docker.tgz https://download.docker.com/${TARGETOS}/static/stable/${DOCKER_ARCH}/docker-${DOCKER_VERSION}.tgz \ - && tar zxvf docker.tgz \ + && tar zxvf docker.tgz --strip 1 -C . docker/docker \ && rm -rf docker.tgz \ && mkdir -p /usr/local/lib/docker/cli-plugins \ && curl -fLo /usr/local/lib/docker/cli-plugins/docker-buildx \ @@ -57,6 +57,6 @@ WORKDIR /home/runner COPY --chown=runner:docker --from=build /actions-runner . COPY --from=build /usr/local/lib/docker/cli-plugins/docker-buildx /usr/local/lib/docker/cli-plugins/docker-buildx -RUN install -o root -g root -m 755 docker/* /usr/bin/ && rm -rf docker +RUN install -o root -g root -m 755 ./docker /usr/bin/ && rm -rf docker USER runner