Back to 💻 Local Dev Environment

Prune Docker System

DockerCleanupDisk Space
---
description: Reclaim disk space by removing unused containers and images
---

1. **Check Current Usage**:
- See how much space Docker is using.
// turbo
- Run docker system df

2. **Run Prune**:
- ⚠️ **WARNING**: This will remove all stopped containers and unused images!
- Remove all stopped containers, unused networks, and dangling images.
// turbo
- Run docker system prune -a

3. **Verify Space Reclaimed**:
- Check the new disk usage.
// turbo
- Run docker system df

4. **Pro Tips**:
- Add --volumes to also delete unused volumes (DATA LOSS WARNING!).
- To remove only dangling images: docker image prune.
- Set up automatic cleanup: add "log-opts": {"max-size": "10m"} to Docker daemon config.
By Antigravity Team

How to Use This Workflow

Option A: Project-Specific (Recommended)

  1. Click "Download" above
  2. In your project, create the directory: .agent/workflows/
  3. Save the file as prune-docker-system-remove-unused-containers.md
  4. In Antigravity, type /prune_docker_system_remove_unused_containers or just describe what you want to do

Learn more about workflows →

Related Workflows

Recommended Rules

View more rules →

Recommended MCP Servers

View more MCP servers →

Take It Further

Maximize your productivity with these powerful resources

📋

Define Your Standards

Set up coding standards to ensure this workflow produces consistent, high-quality results.

Browse Rules Library
📖

Master Workflows

Learn how to create custom workflows, use Turbo Mode, and build your automation library.

Complete Guide