{"record":{"id":"75ca9f698a198291","repo":"different-ai/openwork","slug":"failed-to-run-docker-errors-join-set-op","errorCode":null,"errorMessage":"Failed to run docker: ${errors.join(\"; \")} (Set OPENWORK_DOCKER_BIN to your docker binary if needed)","messagePattern":"Failed to run docker: (.+?) \\(Set OPENWORK_DOCKER_BIN to your docker binary if needed\\)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"apps/desktop/electron/runtime.mjs","lineNumber":1691,"sourceCode":"    for (const program of tried) {\n      try {\n        const result = spawnSync(program, args, {\n          encoding: \"utf8\",\n          timeout: timeoutMs,\n          windowsHide: true,\n        });\n        return {\n          program,\n          status: typeof result.status === \"number\" ? result.status : -1,\n          stdout: result.stdout ?? \"\",\n          stderr: result.stderr ?? \"\",\n        };\n      } catch (error) {\n        errors.push(error instanceof Error ? error.message : String(error));\n      }\n    }\n\n    throw new Error(\n      `Failed to run docker: ${errors.join(\"; \")} (Set OPENWORK_DOCKER_BIN to your docker binary if needed)`,\n    );\n  }\n\n  const legacyOpenworkContainerPrefix = `${[\"openwork\", \"orchestrator\"].join(\"-\")}-`;\n\n  async function listOpenworkManagedContainers() {\n    const result = runDockerCommandDetailed([\"ps\", \"-a\", \"--format\", \"{{.Names}}\"], 8000);\n    if (result.status !== 0) {\n      const combined = `${result.stdout.trim()}\\n${result.stderr.trim()}`.trim();\n      throw new Error(combined || `docker ps -a failed (status ${result.status})`);\n    }\n    return result.stdout\n      .split(/\\r?\\n/)\n      .map((line) => line.trim())\n      .filter((name) => name && (name.startsWith(legacyOpenworkContainerPrefix) || name.startsWith(\"openwork-dev-\") || name.startsWith(\"openwrk-\")))\n      .sort();\n  }","sourceCodeStart":1673,"sourceCodeEnd":1709,"githubUrl":"https://github.com/different-ai/openwork/blob/2b7df46e8ae1517d64c896c7793d2d52ec845669/apps/desktop/electron/runtime.mjs#L1673-L1709","documentation":"Error \"Failed to run docker: ${errors.join(\"; \")} (Set OPENWORK_DOCKER_BIN to your docker binary if needed)\" thrown in different-ai/openwork.","triggerScenarios":"Thrown at apps/desktop/electron/runtime.mjs:1691 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"2b7df46e8ae1517d64c896c7793d2d52ec845669","analyzedAt":"2026-09-01T07:59:23.713Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}