1podman-network-prune(1)     General Commands Manual    podman-network-prune(1)
2
3
4

NAME

6       podman-network-prune - Remove all unused networks
7
8

SYNOPSIS

10       podman network prune [options]
11
12

DESCRIPTION

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

OPTIONS

21   --filter
22       Provide filter values.
23
24
25       The filters argument format is of key=value. If there is more than  one
26       filter, then pass multiple OPTIONS: --filter foo=bar --filter bif=baz.
27
28
29       Supported filters:
30
31
32       ┌───────┬────────────────────────────┐
33Filter Description                
34       ├───────┼────────────────────────────┤
35       │label  │ Only remove networks, with │
36       │       │ (or without, in  the  case │
37       │       │ of  label!=[...]  is used) │
38       │       │ the specified labels.      │
39       ├───────┼────────────────────────────┤
40       │until  │ Only remove networks  cre‐ │
41       │       │ ated  before  given  time‐ │
42       │       │ stamp.                     │
43       └───────┴────────────────────────────┘
44
45       The label filter accepts two formats.  One  is  the  label=key  or  la‐
46       bel=key=value,  which  removes  networks with the specified labels. The
47       other format is the label!=key or label!=key=value, which removes  net‐
48       works without the specified labels.
49
50
51       The  until filter can be Unix timestamps, date formatted timestamps, or
52       Go duration strings (e.g. 10m, 1h30m)  computed  relative  to  the  ma‐
53       chine’s time.
54
55
56   --force, -f
57       Do not prompt for confirmation
58
59

EXAMPLE

61       Prune networks
62
63       podman network prune
64
65
66
67       Prune all networks created before 2h
68
69       podman network prune --filter until=2h
70
71
72

SEE ALSO

74       podman(1), podman-network(1), podman-network-rm(1)
75
76

HISTORY

78       February  2021,  Originally  compiled  by Brent Baude bbaude@redhat.com
79       ⟨mailto:bbaude@redhat.com⟩
80
81
82
83                                                       podman-network-prune(1)
Impressum