From 133cf658ef3f676418bde00d72c0e92fb579e4fb Mon Sep 17 00:00:00 2001 From: Brice Burgess Date: Thu, 16 May 2024 14:19:42 -0600 Subject: [PATCH 1/2] fix: kmod to support dind on hosts without iptables --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 4a84f0e..ad420ca 100644 --- a/Dockerfile +++ b/Dockerfile @@ -26,6 +26,7 @@ RUN apt-get update -y \ # https://github.com/ruby/setup-ruby#using-self-hosted-runners libyaml-dev \ # dockerd dependencies + kmod \ tini \ iptables From 0a29b628aa3e5f8b710e52e726c02d7bda252b93 Mon Sep 17 00:00:00 2001 From: Brice Burgess Date: Thu, 16 May 2024 14:50:39 -0600 Subject: [PATCH 2/2] fix: test for RUN_DOCKERD environment variable --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 97dfd93..d67e506 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,6 +1,6 @@ #!/bin/bash -if [ "RUN_DOCKERD" = "true" ]; then +if [ "$RUN_DOCKERD" = "true" ]; then sudo /usr/bin/dockerd & fi