{
  "schemaVersion": "1.0",
  "item": {
    "slug": "docker-container-cleaner",
    "name": "Docker Container Cleaner",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/Derick001/docker-container-cleaner",
    "canonicalUrl": "https://clawhub.ai/Derick001/docker-container-cleaner",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/docker-container-cleaner",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=docker-container-cleaner",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "README.md",
      "SKILL.md",
      "scripts/main.py"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/docker-container-cleaner"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/docker-container-cleaner",
    "agentPageUrl": "https://openagent3.xyz/skills/docker-container-cleaner/agent",
    "manifestUrl": "https://openagent3.xyz/skills/docker-container-cleaner/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/docker-container-cleaner/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "What This Does",
        "body": "A CLI tool that helps clean up Docker resources to free up disk space. It can:\n\nList and remove stopped containers\nRemove dangling images (images with no tag)\nRemove unused images (not used by any container)\nRemove unused volumes\nRemove unused networks\nPerform a \"prune all\" operation (Docker system prune)\n\nThe tool provides a safe, interactive mode by default, showing what will be removed and asking for confirmation before deleting anything."
      },
      {
        "title": "When To Use",
        "body": "Your Docker disk usage is growing and you need to free up space\nYou have many stopped containers that are no longer needed\nYou have old, unused images taking up disk space\nYou want to clean up Docker resources in a controlled, safe way\nYou need to automate Docker cleanup in scripts or CI/CD pipelines"
      },
      {
        "title": "Usage",
        "body": "Interactive cleanup (recommended for first use):\n\npython3 scripts/main.py clean\n\nRemove stopped containers only:\n\npython3 scripts/main.py clean --containers\n\nRemove dangling images only:\n\npython3 scripts/main.py clean --images --dangling\n\nRemove unused images (all images not used by containers):\n\npython3 scripts/main.py clean --images --unused\n\nRemove unused volumes:\n\npython3 scripts/main.py clean --volumes\n\nRemove unused networks:\n\npython3 scripts/main.py clean --networks\n\nForce cleanup (no confirmation):\n\npython3 scripts/main.py clean --all --force\n\nDry run (show what would be removed):\n\npython3 scripts/main.py clean --all --dry-run"
      },
      {
        "title": "Example 1: Interactive cleanup",
        "body": "python3 scripts/main.py clean\n\nOutput:\n\nDocker Cleanup Tool\n===================\n\nFound resources:\n- Stopped containers: 3 (using 1.2GB)\n- Dangling images: 5 (using 850MB)\n- Unused images: 2 (using 450MB)\n- Unused volumes: 1 (using 100MB)\n- Unused networks: 0\n\nTotal disk space that can be freed: 2.6GB\n\nWhat would you like to clean up?\n1. Remove stopped containers\n2. Remove dangling images\n3. Remove unused images\n4. Remove unused volumes\n5. Remove unused networks\n6. All of the above\n7. Cancel\n\nEnter choice [1-7]: 2\n\nAbout to remove 5 dangling images (850MB):\n- python:3.9-alpine (dangling)\n- node:16-slim (dangling)\n- ...\n\nAre you sure? (y/N): y\nRemoving images...\n✅ Cleanup complete! Freed 850MB of disk space."
      },
      {
        "title": "Example 2: Script-friendly JSON output",
        "body": "python3 scripts/main.py status --format json\n\nOutput:\n\n{\n  \"containers\": {\n    \"running\": 2,\n    \"stopped\": 3,\n    \"stopped_size_mb\": 1200\n  },\n  \"images\": {\n    \"total\": 15,\n    \"dangling\": 5,\n    \"dangling_size_mb\": 850,\n    \"unused\": 2,\n    \"unused_size_mb\": 450\n  },\n  \"volumes\": {\n    \"total\": 4,\n    \"unused\": 1,\n    \"unused_size_mb\": 100\n  },\n  \"networks\": {\n    \"total\": 3,\n    \"unused\": 0\n  },\n  \"total_reclaimable_mb\": 2600\n}"
      },
      {
        "title": "Requirements",
        "body": "Python 3.x\nDocker: Must be installed and the Docker daemon must be running\nDocker CLI: Must be available in PATH (docker command)\nDocker SDK for Python: Optional, but recommended for better performance\n\nInstall Docker SDK for Python (optional):\n\npip install docker"
      },
      {
        "title": "Limitations",
        "body": "This is a CLI tool, not an auto-integration plugin\nRequires Docker daemon to be running and accessible\nSome operations require elevated permissions (sudo)\nCannot clean up resources in use by running containers\nImage size calculations are approximate\nNetwork and volume cleanup may fail if resources are in use\nDoes not clean up Docker build cache (use docker builder prune)\nDoes not clean up Docker Compose resources automatically\nPerformance depends on number of Docker resources\nLarge cleanup operations may take significant time"
      }
    ],
    "body": "Docker Container Cleaner\nWhat This Does\n\nA CLI tool that helps clean up Docker resources to free up disk space. It can:\n\nList and remove stopped containers\nRemove dangling images (images with no tag)\nRemove unused images (not used by any container)\nRemove unused volumes\nRemove unused networks\nPerform a \"prune all\" operation (Docker system prune)\n\nThe tool provides a safe, interactive mode by default, showing what will be removed and asking for confirmation before deleting anything.\n\nWhen To Use\nYour Docker disk usage is growing and you need to free up space\nYou have many stopped containers that are no longer needed\nYou have old, unused images taking up disk space\nYou want to clean up Docker resources in a controlled, safe way\nYou need to automate Docker cleanup in scripts or CI/CD pipelines\nUsage\n\nInteractive cleanup (recommended for first use):\n\npython3 scripts/main.py clean\n\n\nRemove stopped containers only:\n\npython3 scripts/main.py clean --containers\n\n\nRemove dangling images only:\n\npython3 scripts/main.py clean --images --dangling\n\n\nRemove unused images (all images not used by containers):\n\npython3 scripts/main.py clean --images --unused\n\n\nRemove unused volumes:\n\npython3 scripts/main.py clean --volumes\n\n\nRemove unused networks:\n\npython3 scripts/main.py clean --networks\n\n\nForce cleanup (no confirmation):\n\npython3 scripts/main.py clean --all --force\n\n\nDry run (show what would be removed):\n\npython3 scripts/main.py clean --all --dry-run\n\nExamples\nExample 1: Interactive cleanup\npython3 scripts/main.py clean\n\n\nOutput:\n\nDocker Cleanup Tool\n===================\n\nFound resources:\n- Stopped containers: 3 (using 1.2GB)\n- Dangling images: 5 (using 850MB)\n- Unused images: 2 (using 450MB)\n- Unused volumes: 1 (using 100MB)\n- Unused networks: 0\n\nTotal disk space that can be freed: 2.6GB\n\nWhat would you like to clean up?\n1. Remove stopped containers\n2. Remove dangling images\n3. Remove unused images\n4. Remove unused volumes\n5. Remove unused networks\n6. All of the above\n7. Cancel\n\nEnter choice [1-7]: 2\n\nAbout to remove 5 dangling images (850MB):\n- python:3.9-alpine (dangling)\n- node:16-slim (dangling)\n- ...\n\nAre you sure? (y/N): y\nRemoving images...\n✅ Cleanup complete! Freed 850MB of disk space.\n\nExample 2: Script-friendly JSON output\npython3 scripts/main.py status --format json\n\n\nOutput:\n\n{\n  \"containers\": {\n    \"running\": 2,\n    \"stopped\": 3,\n    \"stopped_size_mb\": 1200\n  },\n  \"images\": {\n    \"total\": 15,\n    \"dangling\": 5,\n    \"dangling_size_mb\": 850,\n    \"unused\": 2,\n    \"unused_size_mb\": 450\n  },\n  \"volumes\": {\n    \"total\": 4,\n    \"unused\": 1,\n    \"unused_size_mb\": 100\n  },\n  \"networks\": {\n    \"total\": 3,\n    \"unused\": 0\n  },\n  \"total_reclaimable_mb\": 2600\n}\n\nRequirements\nPython 3.x\nDocker: Must be installed and the Docker daemon must be running\nDocker CLI: Must be available in PATH (docker command)\nDocker SDK for Python: Optional, but recommended for better performance\n\nInstall Docker SDK for Python (optional):\n\npip install docker\n\nLimitations\nThis is a CLI tool, not an auto-integration plugin\nRequires Docker daemon to be running and accessible\nSome operations require elevated permissions (sudo)\nCannot clean up resources in use by running containers\nImage size calculations are approximate\nNetwork and volume cleanup may fail if resources are in use\nDoes not clean up Docker build cache (use docker builder prune)\nDoes not clean up Docker Compose resources automatically\nPerformance depends on number of Docker resources\nLarge cleanup operations may take significant time"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/Derick001/docker-container-cleaner",
    "publisherUrl": "https://clawhub.ai/Derick001/docker-container-cleaner",
    "owner": "Derick001",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/docker-container-cleaner",
    "downloadUrl": "https://openagent3.xyz/downloads/docker-container-cleaner",
    "agentUrl": "https://openagent3.xyz/skills/docker-container-cleaner/agent",
    "manifestUrl": "https://openagent3.xyz/skills/docker-container-cleaner/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/docker-container-cleaner/agent.md"
  }
}