mirror of
https://github.com/containers/podman.git
synced 2025-10-18 03:33:32 +08:00
add support for driver-specific options during container creation
This way has a huge disadvantage: The user will not see an error when he uses a non-existent option. Another disadvantage is, that if we add more options within podman, they might collide with the names chosen by plugins. Such issues might be hard to debug. The advantage is that the usage is very nice: --network bridge:opt1=val1,opt2=val2. Alternatively, we could put this behind `opt=`, which is harder to use, but would solve all issues above: --network bridge:opt=opt1=val1,opt=opt2=val2 Signed-off-by: Michael Zimmermann <sigmaepsilon92@gmail.com>
This commit is contained in:
@ -14,6 +14,9 @@ Valid _mode_ values are:
|
||||
- **ip6=**_IPv6_: Specify a static IPv6 address for this container.
|
||||
- **mac=**_MAC_: Specify a static MAC address for this container.
|
||||
- **interface_name=**_name_: Specify a name for the created network interface inside the container.
|
||||
- **host_interface_name=**_name_: Specify a name for the created network interface outside the container.
|
||||
|
||||
Any other options will be passed through to netavark without validation. This can be useful to pass arguments to netavark plugins.
|
||||
|
||||
For example, to set a static ipv4 address and a static mac address, use `--network bridge:ip=10.88.0.10,mac=44:33:22:11:00:99`.
|
||||
|
||||
|
Reference in New Issue
Block a user