diff --git a/src/commands/doctor-sandbox.ts b/src/commands/doctor-sandbox.ts index 2b665c52c..d46af4ca4 100644 --- a/src/commands/doctor-sandbox.ts +++ b/src/commands/doctor-sandbox.ts @@ -78,8 +78,12 @@ async function dockerImageExists(image: string): Promise { try { await runExec("docker", ["image", "inspect", image], { timeoutMs: 5_000 }); return true; - } catch { - return false; + } catch (error: any) { + const stderr = error?.stderr || error?.message || ""; + if (String(stderr).includes("No such image")) { + return false; + } + throw error; } }