logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

podman-network-prune - Remove all unused networks

Description

       Remove  all unused networks.  An unused network is defined by a network which has no containers connected
       or configured to connect to it. It does not remove the so-called default network which goes by  the  name
       of podman.

Example

       Prune networks:

       podman network prune

       Prune all networks created not created in the last two hours:

       podman network prune --filter until=2h

History

       February 2021, Originally compiled by Brent Baude bbaude@redhat.commailto:bbaude@redhat.compodman-network-prune(1)

Name

       podman-network-prune - Remove all unused networks

Options

--filter
       Provide filter values.

       The  filters  argument  format  is  of  key=value.  If  there is more than one filter, then pass multiple
       OPTIONS: --filterfoo=bar--filterbif=baz.

       Supported filters:

       ┌────────┬───────────────────────────────────────┐
       │ FilterDescription                           │
       ├────────┼───────────────────────────────────────┤
       │ label  │ Only  remove   networks,   with   (or │
       │        │ without,  in the case of label!=[...] │
       │        │ is used) the specified labels.        │
       ├────────┼───────────────────────────────────────┤
       │ until  │ Only remove networks  created  before │
       │        │ given timestamp.                      │
       └────────┴───────────────────────────────────────┘

       The  labelfilter  accepts  two formats. One is the label=key or label=key=value, which removes networks
       with the specified labels. The other format is the label!=key or label!=key=value, which removes networks
       without the specified labels.

       The untilfilter can be Unix timestamps, date formatted timestamps, or Go  duration  strings  (e.g.  10m,
       1h30m) computed relative to the machine’s time.

   --force,-f
       Do not prompt for confirmation

See Also

podman(1), podman-network(1), podman-network-rm(1)

Synopsis

podmannetworkprune [options]

See Also