From 5da3727a2908546f50ce47f06b434402849e0123 Mon Sep 17 00:00:00 2001 From: Mikhail Klimko Date: Wed, 13 Nov 2024 23:47:28 +0300 Subject: [PATCH] fix: rootless dind --- Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 38fa8bd..3c25b50 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"]