Skip to content

Commit

Permalink
fix - docker group permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
chaddyc committed Dec 31, 2024
1 parent 8be6b40 commit 1ac1c3e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ RUN curl -fsSL https://get.docker.com -o get-docker.sh && \
sh get-docker.sh && \
rm get-docker.sh

RUN groupadd -g 998 docker && \
usermod -aG docker runner

WORKDIR /runner

RUN LATEST_RUNNER_VERSION=$(curl -s https://api.github.com/repos/actions/runner/releases/latest | jq -r .tag_name) && \
Expand All @@ -47,8 +44,9 @@ RUN ./bin/installdependencies.sh

RUN useradd -m -s /bin/bash runner && \
echo "runner ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers

RUN sudo usermod -aG docker runner

RUN groupadd -g 998 docker && \
usermod -aG docker runner

RUN chown -R runner:runner /runner

Expand Down

0 comments on commit 1ac1c3e

Please sign in to comment.