1podman-network-rm(1) General Commands Manual podman-network-rm(1)
2
3
4
6 podman-network-rm - Remove one or more networks
7
8
10 podman network rm [options] [network...]
11
12
14 Delete one or more Podman networks.
15
16
18 --force, -f
19 The force option removes all containers that use the named network. If
20 the container is running, the container is stopped and removed.
21
22
23 --time, -t=seconds
24 Seconds to wait before forcibly stopping the running containers that
25 are using the specified network. The --force option must be specified
26 to use the --time option. Use -1 for infinite wait.
27
28
30 Delete the podman9 network
31
32 # podman network rm podman9
33 Deleted: podman9
34
35
36
37 Delete the fred network and all containers associated with the network.
38
39 # podman network rm -f fred
40 Deleted: fred
41
42
43
45 0 All specified networks removed
46
47
48 1 One of the specified networks did not exist, and no other failures
49
50
51 2 The network is in use by a container or a Pod
52
53
54 125 The command fails for any other reason
55
56
58 podman(1), podman-network(1)
59
60
62 August 2019, Originally compiled by Brent Baude bbaude@redhat.com
63 ⟨mailto:bbaude@redhat.com⟩
64
65
66
67 podman-network-rm(1)