Skip to content

[Request]: Storage - Add container prune command to remove stopped containers #892

@realrajaryan

Description

@realrajaryan

Feature or enhancement request details

Add a container prune subcommand to remove all stopped containers.

Basic requirements:

  • Remove all containers in stopped state
  • Display list of removed container IDs
  • Show reclaimed disk space using ByteCountFormatter
  • Trigger fstrim after cleanup to reclaim disk space

Example output:

Pruned containers:
abc123def456
789ghi012jkl

Reclaimed 2.4GB in disk space

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGood for newcomersnextItems in scope for the next few milestonesstorageissues and features associated with storage.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions