Skip to content

Commit

Permalink
SSH: Fix docker group
Browse files Browse the repository at this point in the history
  • Loading branch information
ConnorNelson committed Jun 1, 2024
1 parent f902ca8 commit 8561f97
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions sshd/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,9 @@ RUN apk add --no-cache \
docker-cli \
mysql-client

# requests 2.32.0 (released 5/23/24) breaks docker module
# once resolved, please unpin requests
RUN pip3 install --break-system-packages requests==2.31.0 docker

RUN delgroup ping && \
addgroup -g 999 docker && \
RUN addgroup -g 995 docker && \
adduser -S hacker -G docker -s /bin/sh && \
mkdir -p /home/hacker/.docker && \
echo '{ "detachKeys": "ctrl-q,ctrl-q" }' > /home/hacker/.docker/config.json
Expand Down

0 comments on commit 8561f97

Please sign in to comment.