fix: clean existing containers before Docker compose up to avoid port conflicts

Former-commit-id: 90c1c5d29595bf7f59b66a7de23b7ff89834c6c5
This commit is contained in:
反编译工作区
2026-05-01 22:52:33 +08:00
parent 65fb32d97f
commit 57c639cbf1
+4
View File
@@ -75,6 +75,10 @@ log_ok "Phase 2 complete"
# ============================================ # ============================================
log_info "Phase 3/6: Docker infrastructure" log_info "Phase 3/6: Docker infrastructure"
cd "$SCRIPT_DIR" cd "$SCRIPT_DIR"
# Stop and remove any existing v2test containers (clean restart)
docker compose -f docker-compose.infra.yml down --remove-orphans 2>/dev/null || true
docker compose -f docker-compose.infra.yml up -d docker compose -f docker-compose.infra.yml up -d
log_info "Waiting for Consul..." log_info "Waiting for Consul..."