mirror of
https://github.com/containers/podman.git
synced 2026-07-29 00:16:57 -04:00
docs: fix network create no_default_route doc
With netavark v2 we require true not 1. This was correctly changed in commitbb02e49080but then reverted in commit7612af4c0eagain as it did not properly rebase and solve the conflicts. Signed-off-by: Paul Holzinger <pholzing@redhat.com> (cherry picked from commitadb2307e18) Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
@@ -14,7 +14,7 @@ All drivers accept the `mtu`, `metric`, `no_default_route` and options.
|
||||
|
||||
- `mtu`: Sets the Maximum Transmission Unit (MTU) and takes an integer value.
|
||||
- `metric` Sets the Route Metric for the default route created in every container joined to this network. Accepts a positive integer value. Can only be used with the Netavark network backend.
|
||||
- `no_default_route`: If set to 1, Podman will not automatically add a default route to subnets. Routes can still be added
|
||||
- `no_default_route`: If set to `true`, Podman will not automatically add a default route to subnets. Routes can still be added
|
||||
manually by creating a custom route using `--route`.
|
||||
|
||||
Additionally the `bridge` driver supports the following options:
|
||||
|
||||
@@ -96,7 +96,7 @@ $ podman network create --subnet 192.168.33.0/24 --route 10.1.0.0/24,192.168.33.
|
||||
Create a network with a static subnet and a static route without a default
|
||||
route.
|
||||
```
|
||||
$ podman network create --subnet 192.168.33.0/24 --route 10.1.0.0/24,192.168.33.10 --opt no_default_route=1 newnet
|
||||
$ podman network create --subnet 192.168.33.0/24 --route 10.1.0.0/24,192.168.33.10 --opt no_default_route=true newnet
|
||||
```
|
||||
|
||||
Create a Macvlan based network using the host interface eth0. Macvlan networks can only be used as root.
|
||||
|
||||
Reference in New Issue
Block a user