mirror of
https://github.com/NVIDIA/OpenShell.git
synced 2026-10-26 06:52:57 +08:00
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:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user