{
  "slug": "docker-mount-bind-mounts-accept-bind-create-src-3222c44a6ee5",
  "title": "Docker `--mount` bind mounts accept `bind-create-src`",
  "tools": [
    "docker"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-03-05T15:27:21.000Z",
  "announced_at": "2026-03-05T15:27:21.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When creating a bind mount whose source directory may not exist, add the `bind-create-src` option to `docker run --mount`. Docker creates the source directory on the daemon host if needed.",
    "examples": [
      "docker run --mount type=bind,source=<host-path>,target=<container-path>,bind-create-src <image> [command...]"
    ],
    "gotchas": [
      "Version: 29.3.0",
      "type=bind (required): Selects a bind mount.",
      "source (or src)=<host-path> (required): Host path to mount; can be absolute or relative.",
      "target (or dst, destination)=<container-path> (required): Absolute path where the mount appears in the container.",
      "bind-create-src: Creates the source directory on the daemon host if it does not exist.",
      "Prerequisite: The source path is on the Docker daemon host. With a remote daemon, this does not create a path on the client machine."
    ]
  },
  "why_it_matters": "Create a bind mount whose source directory may not exist yet.",
  "before": "Without `bind-create-src`, `--mount` returns an error when the source path does not exist on the daemon host.",
  "sources": [
    "https://github.com/moby/moby/releases/tag/docker-v29.3.0",
    "https://docs.docker.com/engine/storage/bind-mounts/"
  ],
  "rank": 0.96026,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v2+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "wave1b-tools-20261017",
    "verdict_id": "wave1b-tools-20261017:wave1b-tools-20261017-a45044cf5f662fc8-0:gate",
    "evidence_hash": "6e6242cd4f78ebf67dce8b343680f2699ec781a0f7d16bcae3d498aa80d045ac"
  },
  "review": {
    "draft_hash": "755acc4193d4ba5d1df3e628ba767eeb877c3b0398c35592844c67011082e0f0",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave1b-tools-20261017:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.96 >= 0.9; 2 needed) and Jev gave 0.69 (>= 0.6 needed)."
  }
}
