mirror of
https://github.com/docker/cli.git
synced 2025-08-01 04:26:55 +03:00
run, create, connect: add support for gw-priority
Signed-off-by: Albin Kerouanton <albinker@gmail.com>
This commit is contained in:
@ -749,15 +749,16 @@ To specify options when connecting to more than one network, use the extended sy
|
||||
for the `--network` flag. Comma-separated options that can be specified in the extended
|
||||
`--network` syntax are:
|
||||
|
||||
| Option | Top-level Equivalent | Description |
|
||||
|-----------------|---------------------------------------|-------------------------------------------------|
|
||||
| `name` | | The name of the network (mandatory) |
|
||||
| `alias` | `--network-alias` | Add network-scoped alias for the container |
|
||||
| `ip` | `--ip` | IPv4 address (e.g., 172.30.100.104) |
|
||||
| `ip6` | `--ip6` | IPv6 address (e.g., 2001:db8::33) |
|
||||
| `mac-address` | `--mac-address` | Container MAC address (e.g., 92:d0:c6:0a:29:33) |
|
||||
| `link-local-ip` | `--link-local-ip` | Container IPv4/IPv6 link-local addresses |
|
||||
| `driver-opt` | `docker network connect --driver-opt` | Network driver options |
|
||||
| Option | Top-level Equivalent | Description |
|
||||
|-----------------|---------------------------------------|-----------------------------------------------------------------------------------------|
|
||||
| `name` | | The name of the network (mandatory) |
|
||||
| `alias` | `--network-alias` | Add network-scoped alias for the container |
|
||||
| `ip` | `--ip` | IPv4 address (e.g., 172.30.100.104) |
|
||||
| `ip6` | `--ip6` | IPv6 address (e.g., 2001:db8::33) |
|
||||
| `mac-address` | `--mac-address` | Container MAC address (e.g., 92:d0:c6:0a:29:33) |
|
||||
| `link-local-ip` | `--link-local-ip` | Container IPv4/IPv6 link-local addresses |
|
||||
| `driver-opt` | `docker network connect --driver-opt` | Network driver options |
|
||||
| `gw-priority` | | Highest gw-priority provides the default gateway. Accepts positive and negative values. |
|
||||
|
||||
```console
|
||||
$ docker network create --subnet 192.0.2.0/24 my-net1
|
||||
|
@ -5,14 +5,15 @@ Connect a container to a network
|
||||
|
||||
### Options
|
||||
|
||||
| Name | Type | Default | Description |
|
||||
|:--------------------|:--------------|:--------|:-------------------------------------------|
|
||||
| [`--alias`](#alias) | `stringSlice` | | Add network-scoped alias for the container |
|
||||
| `--driver-opt` | `stringSlice` | | driver options for the network |
|
||||
| [`--ip`](#ip) | `string` | | IPv4 address (e.g., `172.30.100.104`) |
|
||||
| `--ip6` | `string` | | IPv6 address (e.g., `2001:db8::33`) |
|
||||
| [`--link`](#link) | `list` | | Add link to another container |
|
||||
| `--link-local-ip` | `stringSlice` | | Add a link-local address for the container |
|
||||
| Name | Type | Default | Description |
|
||||
|:--------------------|:--------------|:--------|:----------------------------------------------------------------------------------------|
|
||||
| [`--alias`](#alias) | `stringSlice` | | Add network-scoped alias for the container |
|
||||
| `--driver-opt` | `stringSlice` | | driver options for the network |
|
||||
| `--gw-priority` | `int` | `0` | Highest gw-priority provides the default gateway. Accepts positive and negative values. |
|
||||
| [`--ip`](#ip) | `string` | | IPv4 address (e.g., `172.30.100.104`) |
|
||||
| `--ip6` | `string` | | IPv6 address (e.g., `2001:db8::33`) |
|
||||
| [`--link`](#link) | `list` | | Add link to another container |
|
||||
| `--link-local-ip` | `stringSlice` | | Add a link-local address for the container |
|
||||
|
||||
|
||||
<!---MARKER_GEN_END-->
|
||||
|
Reference in New Issue
Block a user