9.6. Removing a network
Use the podman network rm command to remove a specified network.
Prerequisites
-
The
container-toolsmeta-package is installed.
Procedure
List all networks:
# podman network ls NETWORK ID NAME VERSION PLUGINS 2f259bab93aa podman 0.4.0 bridge,portmap,firewall,tuning 11c844f95e28 mynet 0.4.0 bridge,portmap,firewall,tuning,dnsnameRemove the
mynetnetwork:# podman network rm mynet mynet
注意
If the removed network has associated containers with it, you have to use the podman network rm -f command to delete containers and pods.
Verification
Check if
mynetnetwork was removed:# podman network ls NETWORK ID NAME VERSION PLUGINS 2f259bab93aa podman 0.4.0 bridge,portmap,firewall,tuningFor more information, see
podman-network-rm(1)man page on your system.