{
  "slug": "nerdctl-compose-supports-service-healthcheck-99b28357a33a",
  "title": "nerdctl compose supports service healthcheck",
  "tools": [
    "nerdctl"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-05-21T15:01:53.000Z",
  "announced_at": "2026-05-21T15:01:53.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When maintaining a repository’s container setup, add a `healthcheck` mapping to the Compose service to define how its containers are checked for health. nerdctl v2.3.1 documents `healthcheck.start_interval` as unimplemented.",
    "examples": [
      "services:\n  <service>:\n    healthcheck:\n      test: [\"CMD\", \"curl\", \"-f\", \"http://localhost\"]\n      interval: 1m30s\n      timeout: 10s\n      retries: 3\n      start_period: 40s"
    ],
    "gotchas": [
      "Version: v2.3.1",
      "healthcheck.test: Command used to check health; a string or list. A list begins with `NONE`, `CMD`, or `CMD-SHELL`; a string is equivalent to `CMD-SHELL` followed by that string.",
      "healthcheck.interval: Duration between checks.",
      "healthcheck.timeout: Duration before a check is considered failed.",
      "healthcheck.retries: Number of consecutive failures needed to report the container unhealthy.",
      "healthcheck.start_period: Duration to wait during container initialization before counting failures toward the retry threshold.",
      "healthcheck.start_interval: Duration between checks during the start period. nerdctl v2.3.1 lists this field as unimplemented.",
      "Prerequisite: nerdctl >= 0.8 is required for `nerdctl compose`."
    ]
  },
  "why_it_matters": "Configure a Compose service health check when maintaining a repository's container setup.",
  "sources": [
    "https://github.com/containerd/nerdctl/releases/tag/v2.3.1",
    "https://github.com/compose-spec/compose-spec/blob/main/spec.md",
    "https://github.com/containerd/nerdctl/blob/v2.3.1/docs/compose.md"
  ],
  "rank": 0.94031,
  "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-7e86778d36c210dc-0:gate",
    "evidence_hash": "f2ce471628f25caf38389ca8a987390b63f65e6ddf2faa0139e684880ff91f06"
  },
  "review": {
    "draft_hash": "72aeeb342cece8a1b4668cdc6f70b3642ea3b254471a65468b85c54ae057174f",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave1b-20261016:gate",
    "reason": "2 of 3 judge runs approved with p_yes >= 0.9 (mean 0.94 >= 0.9; 2 needed) and Jev gave 0.68 (>= 0.6 needed)."
  }
}
