NAME 名称

podman-network-reload - Reload network configuration for containers
podman-network-reload - 重新加载容器的网络配置

SYNOPSIS 概要

podman network reload [options] [container…]
podman network reload [选项] [容器...]

DESCRIPTION 描述

Reload one or more container network configurations.
重新加载一个或多个容器的网络配置。

Rootful Podman relies on iptables rules in order to provide network connectivity. If the iptables rules are deleted, this happens for example with firewall-cmd --reload, the container loses network connectivity. This command restores the network connectivity.
Rootful Podman 依赖 iptables 规则以提供网络连接。如果 iptables 规则被删除,例如通过 firewall-cmd --reload ,容器将失去网络连接。此命令恢复网络连接。

OPTIONS 选项

--all, -a

Reload network configuration of all containers.
重新加载所有容器的网络配置。

--latest, -l

Instead of providing the container name or ID, use the last created container. Note: the last started container can be from other users of Podman on the host machine. (This option is not available with the remote Podman client, including Mac and Windows (excluding WSL2) machines)
不要提供容器名称或 ID,而是使用最后创建的容器。注意:最后启动的容器可能来自主机上其他 Podman 用户。(此选项在远程 Podman 客户端中不可用,包括 Mac 和 Windows(不包括 WSL2)主机)

EXAMPLE 例子 ¶

Reload the network configuration after a firewall reload:
在防火墙重新加载后重新加载网络配置:

# podman run -p 80:80 -d nginx
b1b538e8bc4078fc3ee1c95b666ebc7449b9a97bacd15bcbe464a29e1be59c1c
# curl 127.0.0.1
works
# sudo firewall-cmd --reload
success
# curl 127.0.0.1
hangs
# podman network reload b1b538e8bc40
b1b538e8bc4078fc3ee1c95b666ebc7449b9a97bacd15bcbe464a29e1be59c1c
# curl 127.0.0.1
works

Reload the network configuration for all containers:
重新加载所有容器的网络配置:

# podman network reload --all
b1b538e8bc4078fc3ee1c95b666ebc7449b9a97bacd15bcbe464a29e1be59c1c
fe7e8eca56f844ec33af10f0aa3b31b44a172776e3277b9550a623ed5d96e72b

SEE ALSO 参见 ¶

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

HISTORY 历史 ¶

December 2020, Originally compiled by Paul Holzinger paul.holzinger@web.de
2020 年 12 月,最初由 Paul Holzinger paul.holzinger@web.de 编写。