{
  "id": "docker/dockerfile-parse-error-line-continuation",
  "signature": "failed to solve with frontend dockerfile.v0: failed to read dockerfile: error parsing dockerfile: unknown instruction: \\",
  "signature_zh": "使用前端 dockerfile.v0 解决失败：读取 dockerfile 失败：解析 dockerfile 错误：未知指令：\\",
  "regex": "unknown instruction: \\\\",
  "domain": "docker",
  "category": "build_error",
  "subcategory": null,
  "root_cause": "Trailing backslash used for line continuation in Dockerfile is not properly escaped or is followed by a space, causing parser to treat it as an instruction.",
  "root_cause_type": "generic",
  "root_cause_zh": "Dockerfile 中用于续行的尾随反斜杠未正确转义或后跟空格，导致解析器将其视为指令。",
  "versions": [
    {
      "version": "Docker 24.0.7",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Docker 25.0.1",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Removing the backslash entirely breaks multi-line RUN commands, causing syntax errors in shell.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Adding more backslashes compounds the parsing error without fixing the root cause.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Ensure no trailing spaces after backslash: replace 'RUN apt-get update && \\\\n    apt-get install -y curl' with proper formatting using a single line or array syntax.",
      "success_rate": 0.9,
      "how": "Ensure no trailing spaces after backslash: replace 'RUN apt-get update && \\\\n    apt-get install -y curl' with proper formatting using a single line or array syntax.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use JSON array syntax for RUN to avoid line continuation issues: 'RUN [\"apt-get\", \"update\"]'.",
      "success_rate": 0.85,
      "how": "Use JSON array syntax for RUN to avoid line continuation issues: 'RUN [\"apt-get\", \"update\"]'.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "确保反斜杠后没有尾随空格：将 'RUN apt-get update && \\\\n    apt-get install -y curl' 替换为使用单行或数组语法的正确格式。",
    "使用 JSON 数组语法进行 RUN 以避免续行问题：'RUN [\"apt-get\", \"update\"]'。"
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://docs.docker.com/engine/reference/builder/#run",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.84,
  "fix_success_rate": 0.88,
  "resolvable": "true",
  "first_seen": "2024-02-18",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}