mirror of
https://github.com/containers/podman.git
synced 2025-05-23 18:17:53 +08:00
Merge pull request #20409 from Luap99/port-fw
[CI:DOCS] network: document ports and macvlan interaction
This commit is contained in:
@ -21,3 +21,6 @@ Host port does not have to be specified (e.g. `podman run -p 127.0.0.1::80`).
|
|||||||
If it is not, the container port is randomly assigned a port on the host.
|
If it is not, the container port is randomly assigned a port on the host.
|
||||||
|
|
||||||
Use **podman port** to see the actual mapping: `podman port $CONTAINER $CONTAINERPORT`.
|
Use **podman port** to see the actual mapping: `podman port $CONTAINER $CONTAINERPORT`.
|
||||||
|
|
||||||
|
Note that the network drivers `macvlan` and `ipvlan` do not support port forwarding,
|
||||||
|
it will have no effect on these networks.
|
||||||
|
@ -43,6 +43,9 @@ under the `[network]` section.
|
|||||||
The name of the plugin can then be used as driver to create a network for your plugin.
|
The name of the plugin can then be used as driver to create a network for your plugin.
|
||||||
The list of all supported drivers and plugins can be seen with `podman info --format {{.Plugins.Network}}`.
|
The list of all supported drivers and plugins can be seen with `podman info --format {{.Plugins.Network}}`.
|
||||||
|
|
||||||
|
Note that the `macvlan` and `ipvlan` drivers do not support port forwarding. Support for port forwarding
|
||||||
|
with a plugin depends on the implementation of the plugin.
|
||||||
|
|
||||||
#### **--gateway**=*ip*
|
#### **--gateway**=*ip*
|
||||||
|
|
||||||
Define a gateway for the subnet. To provide a gateway address, a
|
Define a gateway for the subnet. To provide a gateway address, a
|
||||||
|
Reference in New Issue
Block a user