Skip to content

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

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

Activity

  1. added
    facet/network
    on Nov 17, 2025
  2. saehejkang commented on Nov 18, 2025

    @saehejkang
    Contributor

    currently working on this issue

  3. added 6 commits that reference this issue on Nov 20, 2025
    9a574f1
    d23e597
    c8c0cee
    7244c43
    b6a548d
    4fe916a
  4. added a commit that references this issue on Dec 17, 2025
    9f4efe0
  5. added 3 commits that reference this issue on Jan 20, 2026
    1559e6d
    0099292
    94ba456
  6. added a commit that references this issue on Jan 27, 2026
    5de8f01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

facet/networkgood-first-issue

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions