Skip to content

Commit

Permalink
fix: rootless dind
Browse files Browse the repository at this point in the history
  • Loading branch information
mikhail-klimko committed Nov 13, 2024
1 parent 5da3727 commit 274507b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,8 @@ ADD . /dind

RUN chown -R $(id -u rootless) /dind
RUN chown -R $(id -u rootless) /var/run
RUN chown -R $(id -u rootless) /run/user

RUN chown -R $(id -u rootless) /etc/ssl && chmod 777 -R /etc/ssl
USER rootless
RUN rm -i -f /var/run && \
ln -s /run/user/1000 /var/run && \
ln -s /run/user/1000/docker.pid /var/run/docker.pid && \
ln -s /run/user/1000/docker.sock /var/run/docker.sock
RUN rm -i -f /var/run && ln -s /run/user/1000 /var/run
ENTRYPOINT ["./run.sh"]

0 comments on commit 274507b

Please sign in to comment.