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.
This commit is contained in:
Yusuke Kuoka 2022-11-04 06:28:47 +09:00 committed by GitHub
parent 828d51baf2
commit 3de8085b87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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