{"record":{"id":"0ef0685ab9cb9d8a","repo":"oven-sh/bun","slug":"failed-to-run-container-inspect-result","errorCode":null,"errorMessage":"Failed to run container: ${inspect(result)}","messagePattern":"Failed to run container: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"scripts/docker.mjs","lineNumber":198,"sourceCode":"    const args = Object.entries(containerOptions)\n      .filter(([_, value]) => typeof value !== \"undefined\")\n      .map(([key, value]) => (typeof value === \"boolean\" ? `--${key}` : `--${key}=${value}`));\n    if (detach) {\n      args.push(\"--detach\");\n    } else {\n      args.push(\"--tty\", \"--interactive\");\n    }\n\n    const stdio = detach ? \"pipe\" : \"inherit\";\n    const result = await this.spawn($`run ${args} ${url} ${command}`, { stdio });\n    if (!detach) {\n      return;\n    }\n\n    const containerId = result.trim();\n    const container = await this.inspectContainer(containerId);\n    if (!container) {\n      throw new Error(`Failed to run container: ${inspect(result)}`);\n    }\n    return container;\n  },\n\n  /**\n   * @param {Platform} platform\n   * @returns {Promise<DockerImage>}\n   */\n  async getBaseImage(platform) {\n    const { os, distro, release } = platform;\n    const dockerPlatform = this.getPlatform(platform);\n\n    let url;\n    if (os === \"linux\") {\n      if (distro === \"debian\" || distro === \"ubuntu\" || distro === \"alpine\") {\n        url = `docker.io/library/${distro}:${release}`;\n      } else if (distro === \"amazonlinux\") {\n        url = `public.ecr.aws/amazonlinux/amazonlinux:${release}`;","sourceCodeStart":180,"sourceCodeEnd":216,"githubUrl":"https://github.com/oven-sh/bun/blob/8c5296ac459e8252d3cd702f3fbcbb0c249d95d5/scripts/docker.mjs#L180-L216","documentation":"Error \"Failed to run container: ${inspect(result)}\" thrown in oven-sh/bun.","triggerScenarios":"Thrown at scripts/docker.mjs:198 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":"8c5296ac459e8252d3cd702f3fbcbb0c249d95d5","analyzedAt":"2026-08-16T08:01:58.794Z","schemaVersion":2},"datasetVersion":"2026-08-16T08:17:34.114Z"}