Skip to content

[Request]: Storage - Add container system prune command to remove unused resources #891

Description

@realrajaryan

Feature or enhancement request details

Add a container system prune subcommand to remove unused images, stopped containers, and dangling volumes in a single operation. This provides a convenient way for users to reclaim disk space.

Some basic requirements:

Example usage:

container system prune # Remove stopped containers and dangling images
container system prune --all # Remove all unused images
container system prune --volumes --force # Include volumes, skip confirmation

Example output:

Pruned containers:
abc123def456
789ghi012jkl
Pruned images:
sha256:abcd1234...
sha256:efgh5678...
Reclaimed 8.5GB in disk space

Some things to discuss

Code of Conduct

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    storageissues and features associated with storage.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions