From 73c266c2b09a58a584eadc32f4639ae8cef175d4 Mon Sep 17 00:00:00 2001 From: Mikhail Klimko Date: Mon, 18 Nov 2024 15:41:40 +0300 Subject: [PATCH] fix: rootless dind --- Dockerfile | 9 ++++++++- service.yaml | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 49c659d..e5eab07 100644 --- a/Dockerfile +++ b/Dockerfile @@ -55,6 +55,13 @@ RUN chown -R $(id -u rootless) /dind RUN chown -R $(id -u rootless) /var/run 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 set -eux; \ + mkdir -p /home/rootless/.local/share/docker; \ + chown -R rootless:rootless /home/rootless/.local/share/docker + +VOLUME /home/rootless/.local/share/docker +USER rootless + ENTRYPOINT ["./run.sh"] diff --git a/service.yaml b/service.yaml index f0c29dd..569dde0 100644 --- a/service.yaml +++ b/service.yaml @@ -1 +1 @@ -version: 1.28.10 +version: 1.28.11