fix(ci): use nohup for dockerd to survive between GHA steps

Each GHA step runs via docker exec which sends SIGHUP to backgrounded
processes when the shell exits. Use nohup to detach dockerd from the
step's process group so it persists across steps.
This commit is contained in:
Drew Newberry
2026-03-14 23:40:34 -07:00
parent 7485f07b95
commit 9a40f60700
+1 -1
View File
@@ -84,7 +84,7 @@ jobs:
# We use a dedicated socket because the GHA runner injects its own
# /var/run/docker.sock for container management. DOCKER_HOST is set
# per-step (not via GITHUB_ENV) to avoid breaking the runner.
dockerd --host unix:///var/run/dind.sock &>/var/log/dockerd.log &
nohup dockerd --host unix:///var/run/dind.sock &>/var/log/dockerd.log &
echo "Waiting for Docker daemon..."
export DOCKER_HOST=unix:///var/run/dind.sock
timeout 30 sh -c 'until docker info >/dev/null 2>&1; do sleep 1; done'