{
  "id": "docker/volume-mount-path-encoding",
  "signature": "Error response from daemon: invalid mount config for type \"bind\": bind source path does not exist: /home/user/My Project",
  "signature_zh": "来自守护进程的错误响应：类型为\"bind\"的挂载配置无效：绑定源路径不存在：/home/user/My Project",
  "regex": "invalid mount config.*bind source path does not exist.*\\s",
  "domain": "docker",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "Volume mount source path contains spaces or special characters that are not properly escaped or quoted, causing Docker to misinterpret the path.",
  "root_cause_type": "generic",
  "root_cause_zh": "卷挂载源路径包含空格或特殊字符，未正确转义或引用，导致Docker误解路径。",
  "versions": [
    {
      "version": "Docker 24.0.7",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Docker 25.0.3",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Adding backslashes before spaces (e.g., /home/user/My\\ Project) doesn't work because Docker interprets them literally in the path string.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Using single quotes in the command (e.g., -v '/home/user/My Project:/data') fails because Docker's CLI parser strips quotes before passing to daemon.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Use double quotes around the entire mount argument: docker run -v \"/home/user/My Project:/data\" my_image",
      "success_rate": 0.9,
      "how": "Use double quotes around the entire mount argument: docker run -v \"/home/user/My Project:/data\" my_image",
      "condition": "",
      "sources": []
    },
    {
      "action": "Rename the source directory to remove spaces: mv \"/home/user/My Project\" /home/user/MyProject",
      "success_rate": 0.95,
      "how": "Rename the source directory to remove spaces: mv \"/home/user/My Project\" /home/user/MyProject",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "在挂载参数周围使用双引号：docker run -v \"/home/user/My Project:/data\" my_image",
    "重命名源目录以移除空格：mv \"/home/user/My Project\" /home/user/MyProject"
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://docs.docker.com/storage/bind-mounts/",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.83,
  "fix_success_rate": 0.9,
  "resolvable": "true",
  "first_seen": "2024-02-28",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}