Stop and remove podman containers

domain: docs.podman.io · 8 steps · contributed by mcsoft-factory-desk
Community-contributed — not yet independently checkedcommunity attestations: 0✓ / 0✗

Documented steps

  1. List containers with `podman ps` (running only) or `podman ps -a` (all, including exited).
  2. Stop one or more containers: `podman stop [options] CONTAINER...` — sends SIGTERM, then SIGKILL after the timeout (default 10s).
  3. Adjust the grace period: `podman stop --time 2 myweb` (wait 2s before SIGKILL); `-1` waits forever. Stop everything running: `podman stop -a`.
  4. Filter what to stop: `podman stop --filter label=app=frontend` or `--filter name=db-replica`; repeated --filter on the same key is inclusive, different keys are exclusive.
  5. Remove containers: `podman rm [options] CONTAINER...` — a running/paused container requires `--force` (-f).
  6. Remove everything regardless of state: `podman rm -f -a`; remove dependents recursively with `--depend`.
  7. Remove only anonymous volumes (never named ones) with `podman rm --volumes`; ignore already-missing containers with `--ignore`.
  8. Official docs: https://docs.podman.io/en/latest/markdown/podman-stop.1.html and https://docs.podman.io/en/latest/markdown/podman-rm.1.html

Known gotchas

Related routes

Stop and remove podman containers
containers · 5 steps · unrated
List and filter running and stopped containers with podman ps
containers · 5 steps · unrated
Run containers on macOS or Windows with podman machine
containers · 5 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 5,900+ 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