Guard the pull

This commit is contained in:
2026-01-22 10:46:55 -05:00
parent 1064344515
commit ab37384bc9

View File

@@ -119,6 +119,8 @@ IMAGE="${IMAGE_BASE}/${CUDA_VERSION}/tentacle:${IMAGE_TAG}"
# ----------------------------- # -----------------------------
# Registry login # Registry login
# ----------------------------- # -----------------------------
docker logout "$REGISTRY" >/dev/null 2>&1 || true
REG_USER="krkn-registry" REG_USER="krkn-registry"
read -rsp "Registry access token: " REG_PASS read -rsp "Registry access token: " REG_PASS
@@ -147,7 +149,10 @@ WORKER_ID="${WORKER_ID:-$DEFAULT_WORKER_ID}"
# Pull image # Pull image
# ----------------------------- # -----------------------------
log "Pulling image: ${IMAGE}" log "Pulling image: ${IMAGE}"
docker pull "${IMAGE}" docker pull "${IMAGE}" || {
err "Failed to pull image. Check token permissions or image availability."
exit 1
}
# ----------------------------- # -----------------------------
# Stop old container # Stop old container