mirror of
https://github.com/containers/podman.git
synced 2025-08-06 11:32:07 +08:00
network create: add support for ipam-driver none
Add a new flag to set the ipam-driver. Also adds a new ipam driver none mode which only creates interfaces but does not assign addresses. Fixes #13521 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
@ -49,6 +49,16 @@ Allocate container IP from a range. The range must be a complete subnet and in
|
||||
must be used with a *subnet* option. Can be specified multiple times.
|
||||
The argument order of the **--subnet**, **--gateway** and **--ip-range** options must match.
|
||||
|
||||
#### **--ipam-driver**=*driver*
|
||||
|
||||
Set the ipam driver (IP Address Management Driver) for the network. When unset podman will choose an
|
||||
ipam driver automatically based on the network driver. Valid values are:
|
||||
- `host-local`: IP addresses are assigned locally.
|
||||
- `dhcp`: IP addresses are assigned from a dhcp server on your network. This driver is not yet supported with netavark.
|
||||
- `none`: No ip addresses are assigned to the interfaces.
|
||||
|
||||
You can see the driver in the **podman network inspect** output under the `ipam_options` field.
|
||||
|
||||
#### **--ipv6**
|
||||
|
||||
Enable IPv6 (Dual Stack) networking. If not subnets are given it will allocate a ipv4 and ipv6 subnet.
|
||||
|
Reference in New Issue
Block a user