docker container prune --filter 'until=24h'

Category: Docker

docker container prune --filter 'until=24h'

Remove stopped containers older than a day

Deletes stopped containers last used over 24 hours ago, reclaiming disk without touching running ones. The until filter protects recent containers. Destructive: container filesystems and their data are gone.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.