NAME¶ 名称
podman-network-rm - Remove one or more networks
podman-network-rm - 删除一个或多个网络
SYNOPSIS¶ 概要
podman network rm [options] [network…]
podman network rm [选项] [网络...]
DESCRIPTION¶ 描述
Delete one or more Podman networks.
删除一个或多个 Podman 网络。
OPTIONS¶ 选项
--force, -f¶
The force
option removes all containers that use the named network. If the container is
running, the container is stopped and removed.
force
选项会删除所有使用指定网络的容器。如果容器正在运行,则会停止并删除容器。
--time, -t=seconds¶ --time, -t=秒数
Seconds to wait before forcibly stopping the running containers that are using the specified network. The --force option must be specified to use the --time option. Use -1 for infinite wait.
在强制停止正在使用指定网络的运行中容器之前等待的秒数。必须指定 --force 选项才能使用 --time 选项。使用 -1 表示无限等待。
EXAMPLE¶ 例子 ¶
Delete specified network:
删除指定网络:
# podman network rm podman9
Deleted: podman9
Delete specified network and all containers associated with the network:
删除指定网络以及与该网络关联的所有容器:
# podman network rm -f fred
Deleted: fred
Exit Status¶ 退出状态 ¶
0 All specified networks removed
已移除所有指定网络
1 One of the specified networks did not exist, and no other failures
1 指定的网络之一不存在,并且没有其他故障
2 The network is in use by a container or a Pod
2 该网络被容器或 Pod 使用
125 The command fails for any other reason
125 由于其他原因命令失败
SEE ALSO¶ 参见 ¶
podman(1), podman-network(1)
podman(1),podman-network(1)
HISTORY¶ 历史 ¶
August 2019, Originally compiled by Brent Baude bbaude@redhat.com
2019 年 8 月,最初由 Brent Baude bbaude@redhat.com 编译