From d95b8d81dad0cab3c74a83b4f58044c790be5aa7 Mon Sep 17 00:00:00 2001 From: Leechael Yim Date: Mon, 12 Oct 2026 13:44:56 +0800 Subject: [PATCH] fix(prelaunch): v0.0.21 - timeout docker compose pull Sync with the canonical script in phala-cloud-monorepo (v0.0.21): add a 300s timeout to `docker compose pull` so a stalled pull cannot block CVM boot indefinitely. --- phala-cloud-prelaunch-script/prelaunch.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phala-cloud-prelaunch-script/prelaunch.sh b/phala-cloud-prelaunch-script/prelaunch.sh index 9ae97d0d..e1fb1b86 100644 --- a/phala-cloud-prelaunch-script/prelaunch.sh +++ b/phala-cloud-prelaunch-script/prelaunch.sh @@ -1,6 +1,6 @@ #!/bin/bash echo "----------------------------------------------" -echo "Running Phala Cloud Pre-Launch Script v0.0.20" +echo "Running Phala Cloud Pre-Launch Script v0.0.21" echo "----------------------------------------------" set -e @@ -235,7 +235,7 @@ echo "Images before pull:" docker images --format '{{.Repository}}:{{.Tag}} {{.ID}} ({{.CreatedSince}})' echo "Pulling latest images from /dstack/docker-compose.yaml..." -if docker compose -f /dstack/docker-compose.yaml pull; then +if timeout 300 docker compose -f /dstack/docker-compose.yaml pull; then echo "docker compose pull completed" notify_host_hoot_info "docker compose pull completed" else