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 ccab1a8 commit 5da3727
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,8 @@ 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
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
ENTRYPOINT ["./run.sh"]

0 comments on commit 5da3727

Please sign in to comment.