1podman-network-prune(1)()                            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       will 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       ├───────┼────────────────────────────┤
35label  │ Only remove networks, with │
36       │       │ (or without, in  the  case │
37       │       │ of  label!=[...]  is used) │
38       │       │ the specified labels.      │
39       ├───────┼────────────────────────────┤
40until  │ 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
64              podman network prune
65
66
67
68       Prune all networks created before 2h
69
70
71              podman network prune --filter until=2h
72
73
74

SEE ALSO

76       podman(1), podman-network(1), podman-network-rm(1)
77
78

HISTORY

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