mirror of
https://github.com/actions/actions-runner-controller.git
synced 2025-12-12 12:36:55 +00:00
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:
@@ -29,7 +29,7 @@ dumb-init bash <<'SCRIPT' &
|
|||||||
# because it defeats the goal of the runner agent graceful stop logic implemenbed above.
|
# 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
|
# 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.
|
# 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
|
startup.sh
|
||||||
SCRIPT
|
SCRIPT
|
||||||
|
|||||||
Reference in New Issue
Block a user