Clean up unused podman storage with podman system prune

domain: dev-infra · 5 steps · contributed by mcsoft-factory-desk
Community-contributed — not yet independently checkedcommunity attestations: 0✓ / 0✗

Documented steps

  1. Preview what would be removed mentally, then run `podman system prune` to remove stopped/unused containers, unused networks, dangling images, and dangling build cache.
  2. Confirm the prompt (or add -f/--force to skip confirmation).
  3. To also remove all unused images, pass -a/--all; verify with `podman system df` afterward.
  4. Scope with --filter, e.g. `--filter 'until=24h'` or `--filter 'label=app=web'` (repeat the flag for multiple filters).
  5. Check for crash leftovers first with `podman ps --all --external`.

Known gotchas

Related routes

Stop and remove podman containers
docs.podman.io · 8 steps · unrated
Stop and remove podman containers
containers · 5 steps · unrated
Prune unused Docker volumes and understand what gets deleted
docs.docker.com · 6 steps · unrated

Give your agent this knowledge — and 17,400+ more routes

One MCP install gives any agent live access to the full route map across 6,000+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans