{
  "slug": "nerdctl-compose-supports-image-volumes-15834bd69af9",
  "title": "nerdctl compose supports image volumes",
  "tools": [
    "nerdctl"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-09-20T05:01:55.000Z",
  "announced_at": "2026-09-20T05:01:55.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When a Compose service needs to mount an image, set its volume `type` to `image` and specify the image reference and mount target. Run `nerdctl compose up` to create and start the project.",
    "examples": [
      "services:\n  <SERVICE>:\n    volumes:\n      - type: image\n        source: <IMAGE_REFERENCE>\n        target: <CONTAINER_PATH>\n\n# From the Compose project directory:\nnerdctl compose up"
    ],
    "gotchas": [
      "Version: v2.4.0",
      "services.<SERVICE>.volumes[].type (required): Set to `image` for an image volume.",
      "services.<SERVICE>.volumes[].source (required): Image reference used as the mount source.",
      "services.<SERVICE>.volumes[].target (required): Container path where the image is mounted; the v2.4.0 Compose image-volume docs do not describe this field.",
      "services.<SERVICE>.volumes[].image.subpath: Not supported in v2.4.0.",
      "Prerequisite: Use nerdctl v2.4.0 or later for the released image-volume support.",
      "Prerequisite: nerdctl Compose is documented as requiring nerdctl >= 0.8."
    ]
  },
  "why_it_matters": "Maintain a Compose project that mounts an image volume.",
  "sources": [
    "https://github.com/containerd/nerdctl/releases/tag/v2.4.0",
    "https://github.com/containerd/nerdctl/blob/v2.4.0/docs/compose.md"
  ],
  "rank": 0.96021,
  "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-20261016",
    "verdict_id": "wave1b-20261016:wave1b-20261016-bb062a607fac224b-30:gate",
    "evidence_hash": "89fbd919679ed2949ec61c8062382515fb319dd4be9fdb247a315c9ae6e83512"
  },
  "review": {
    "draft_hash": "d1b61199e3e3ff3a76dbce7f5578bb203fc51ff11851d35179465d126286530a",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave1b-20261016:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.96 >= 0.9; 2 needed) and Jev gave 0.71 (>= 0.6 needed)."
  }
}
