{
  "id": "docker/overlay2-quota-exceeded",
  "signature": "Error response from daemon: mkdir /var/lib/docker/overlay2/...: no space left on device",
  "signature_zh": "守护进程响应错误：mkdir /var/lib/docker/overlay2/...：设备上没有剩余空间",
  "regex": "no space left on device.*overlay2",
  "domain": "docker",
  "category": "resource_error",
  "subcategory": null,
  "root_cause": "The overlay2 filesystem has exhausted its inode or block quota, typically due to excessive container layers or dangling images consuming all available space.",
  "root_cause_type": "generic",
  "root_cause_zh": "overlay2 文件系统的 inode 或块配额已耗尽，通常是由于过多的容器层或悬空镜像占用了所有可用空间。",
  "versions": [
    {
      "version": "Docker 20.10.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Docker 24.0.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Docker 25.0.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Docker CE 26.0.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Running 'docker system prune -a' without checking for running containers can remove essential images and containers, causing data loss.",
      "fail_rate": 0.4,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Increasing overlay2 size via daemon.json 'storage-opts' often fails because the underlying filesystem (e.g., ext4) does not support per-directory quotas.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Rebooting the host only temporarily frees space if the root cause (e.g., log rotation) is not addressed.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Run 'docker system prune --all --volumes' to remove unused containers, networks, images, and volumes. Then verify with 'df -h /var/lib/docker' and 'df -i /var/lib/docker'.",
      "success_rate": 0.75,
      "how": "Run 'docker system prune --all --volumes' to remove unused containers, networks, images, and volumes. Then verify with 'df -h /var/lib/docker' and 'df -i /var/lib/docker'.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Increase the overlay2 storage quota by editing /etc/docker/daemon.json: add '{\"storage-opts\": [\"overlay2.size=100G\"]}' and restart Docker. Note: this works only with xfs filesystem and project quotas enabled.",
      "success_rate": 0.6,
      "how": "Increase the overlay2 storage quota by editing /etc/docker/daemon.json: add '{\"storage-opts\": [\"overlay2.size=100G\"]}' and restart Docker. Note: this works only with xfs filesystem and project quotas enabled.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Run 'docker system prune --all --volumes' to remove unused containers, networks, images, and volumes. Then verify with 'df -h /var/lib/docker' and 'df -i /var/lib/docker'.",
    "Increase the overlay2 storage quota by editing /etc/docker/daemon.json: add '{\"storage-opts\": [\"overlay2.size=100G\"]}' and restart Docker. Note: this works only with xfs filesystem and project quotas enabled."
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://docs.docker.com/storage/storagedriver/overlayfs-driver/",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.85,
  "fix_success_rate": 0.78,
  "resolvable": "partial",
  "first_seen": "2023-03-15",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}