{
  "id": "docker/network-not-created-before-service",
  "signature": "Error response from daemon: network 'my_network' not found: network not found",
  "signature_zh": "守护进程错误响应：网络 'my_network' 未找到：网络未找到",
  "regex": "network.*not found.*network not found",
  "domain": "docker",
  "category": "network_error",
  "subcategory": null,
  "root_cause": "A service or container references a Docker network that has not been created yet, often due to misordered docker-compose or manual creation.",
  "root_cause_type": "generic",
  "root_cause_zh": "服务或容器引用了尚未创建的 Docker 网络，通常由于 docker-compose 或手动创建顺序错误。",
  "versions": [
    {
      "version": "Docker 24.0.6",
      "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"
    },
    {
      "version": "Docker 23.0.5",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Docker Compose 2.24.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Running 'docker network create my_network' after the container start attempt may cause the container to still fail because it was created before the network was available.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Using the same network name but with different driver options does not resolve the missing network issue if it hasn't been created.",
      "fail_rate": 0.85,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Create the network first: 'docker network create my_network', then start the container. For docker-compose, ensure the network is defined in the networks section. Example:\nnetworks:\n  my_network:\n    driver: bridge",
      "success_rate": 0.9,
      "how": "Create the network first: 'docker network create my_network', then start the container. For docker-compose, ensure the network is defined in the networks section. Example:\nnetworks:\n  my_network:\n    driver: bridge",
      "condition": "",
      "sources": []
    },
    {
      "action": "If using docker-compose, run 'docker-compose up -d' which automatically creates networks defined in the compose file before starting services.",
      "success_rate": 0.95,
      "how": "If using docker-compose, run 'docker-compose up -d' which automatically creates networks defined in the compose file before starting services.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Create the network first: 'docker network create my_network', then start the container. For docker-compose, ensure the network is defined in the networks section. Example:\nnetworks:\n  my_network:\n    driver: bridge",
    "If using docker-compose, run 'docker-compose up -d' which automatically creates networks defined in the compose file before starting services."
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://docs.docker.com/network/",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.86,
  "fix_success_rate": 0.9,
  "resolvable": "true",
  "first_seen": "2024-04-18",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}