Skip to content

Commit

Permalink
fix - adjust docker permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
chaddyc committed Jan 1, 2025
1 parent c53ba97 commit 6d3f136
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"]

0 comments on commit 6d3f136

Please sign in to comment.