From 6d3f136267de51771d06fe169d625b097df0d2b4 Mon Sep 17 00:00:00 2001 From: Chad Crouch Date: Wed, 1 Jan 2025 11:13:06 +0200 Subject: [PATCH] fix - adjust docker permissions --- Dockerfile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 215e08c..e141273 100644 --- a/Dockerfile +++ b/Dockerfile @@ -45,14 +45,10 @@ RUN ./bin/installdependencies.sh RUN useradd -m -s /bin/bash runner && \ echo "runner ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers -RUN getent group docker || groupadd -g 988 docker && \ +# Create the docker group and add the runner user +RUN getent group docker || groupadd -g 999 docker && \ usermod -aG docker runner -# RUN groupadd -g 121 runner && \ -# useradd -mr -d /home/runner -u 1001 -g 121 runner && \ -# usermod -aG sudo runner && \ -# usermod -aG docker runner - RUN chown -R runner:runner /runner COPY entrypoint.sh /entrypoint.sh @@ -61,4 +57,8 @@ RUN chmod +x /entrypoint.sh USER runner WORKDIR /runner +# Start Docker daemon in the container +RUN mkdir -p /home/runner/.docker && chmod -R 0700 /home/runner/.docker +CMD ["dockerd-entrypoint.sh"] + ENTRYPOINT ["/entrypoint.sh"]