Docker 29 · Cleaning up

Remove stopped containers

Delete every stopped container.

docker container prune

Caution: Removes every stopped container, including ones you may still want to restart or inspect.

Official Docker 29 documentation

More cleaning up commands

All cleaning up commands · Docker 29 cheatsheet

Was this page helpful?