NAME 名称

podman-network-disconnect - Disconnect a container from a network
podman-network-disconnect - 从网络中断开容器的连接

SYNOPSIS 概要

podman network disconnect [options] network container
podman network disconnect [选项] 网络 容器

DESCRIPTION 描述

Disconnects a container from a network. A container can be disconnected from a network by name or by ID. If all networks are disconnected from the container, it behaves like a container created with --network=none and it does not have network connectivity until a network is connected again.
从网络中断开容器的连接。容器可以通过名称或 ID 从网络中断开连接。如果容器从所有网络中断开连接,则其行为类似于使用 --network=none 创建的容器,并且在重新连接网络之前它不具有网络连接功能。

OPTIONS 选项

--force, -f

Force the container to disconnect from a network
强制容器与网络断开连接

EXAMPLE 例子 ¶

Disconnect container from specified network:
从指定网络断开容器:

podman network disconnect test web

SEE ALSO 参见 ¶

podman(1), podman-network(1), podman-network-connect(1)

HISTORY 历史 ¶

November 2020, Originally compiled by Brent Baude bbaude@redhat.com
2020 年 11 月,最初由 Brent Baude bbaude@redhat.com 编译