From 3de8085b87025de3c62426ed5e009f403801db25 Mon Sep 17 00:00:00 2001 From: Yusuke Kuoka Date: Fri, 4 Nov 2022 06:28:47 +0900 Subject: [PATCH] Fix rootless dind to do write logs (#1978) It turned out too hard to debug configuration issues on the rootless dind daemon as it was not writing any logs to stdout/stderr of the container. This fixes that, so that any rootless dind configuration or startup errors are visible in e.g. the kubectl-logs output. --- runner/entrypoint-dind-rootless.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runner/entrypoint-dind-rootless.sh b/runner/entrypoint-dind-rootless.sh index 16023bc8..b10b0a78 100644 --- a/runner/entrypoint-dind-rootless.sh +++ b/runner/entrypoint-dind-rootless.sh @@ -29,7 +29,7 @@ dumb-init bash <<'SCRIPT' & # because it defeats the goal of the runner agent graceful stop logic implemenbed above. # We can't rely on e.g. `dumb-init --single-child` for that, because with `--single-child` we can't even trap SIGTERM # for not only dockerd but also the runner agent. -/home/runner/bin/dockerd-rootless.sh --config-file /home/runner/.config/docker/daemon.json >> /dev/null 2>&1 & +/home/runner/bin/dockerd-rootless.sh --config-file /home/runner/.config/docker/daemon.json & startup.sh SCRIPT