mirror of
https://github.com/containers/podman.git
synced 2025-05-28 13:40:33 +08:00

Escape the two dashes, otherwise they are combined into one long dash. I tested that this change is safe and still renders correctly on github and with the man pages. This commit also contains a small change to make it build locally. Assuming you have the dependencies installed you can do: ``` cd docs make html ``` Preview the html files in docs/build/html with `python -m http.server 8000 --directory build/html`. Fixes containers/podman.io#373 Signed-off-by: Paul Holzinger <paul.holzinger@web.de>
61 lines
1.7 KiB
Markdown
61 lines
1.7 KiB
Markdown
% podman-network-reload(1)
|
|
|
|
## NAME
|
|
podman\-network\-reload - Reload network configuration for containers
|
|
|
|
## SYNOPSIS
|
|
**podman network reload** [*options*] [*container...*]
|
|
|
|
## 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.
|
|
|
|
This command is not available for rootless users since rootless containers are not affected by such connectivity problems.
|
|
|
|
## OPTIONS
|
|
#### **\-\-all**, **-a**
|
|
|
|
Reload network configuration of all containers.
|
|
|
|
#### **\-\-latest**, **-l**
|
|
|
|
Instead of providing the container name or ID, use the last created container. If you use methods other than Podman
|
|
to run containers such as CRI-O, the last started container could be from either of those methods. (This option is not available with the remote Podman client)
|
|
|
|
## 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)
|
|
|
|
## HISTORY
|
|
December 2020, Originally compiled by Paul Holzinger <paul.holzinger@web.de>
|