Skip to content

[Request]: Add container network prune command to remove unused networks #893

@realrajaryan

Description

@realrajaryan

Feature or enhancement request details

Add a container network prune subcommand to remove networks not connected to any containers.

Basic requirements:

  • Remove all networks with no container connections
  • Preserve default/system networks (e.g., bridge, host)
  • Display list of removed network names

Example output:

Pruned networks:
some-network-1
some-network-2

Code of Conduct

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

Metadata

Metadata

Assignees

Labels

good first issueGood for newcomersnetworkIssues and features associated with networking and DNS.nextMust-have items for current and next milestone

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions