Docs: emphasise that some options that are for docker0

Signed-off-by: Rob Murray <rob.murray@docker.com>
This commit is contained in:
Rob Murray 2024-12-10 09:47:26 +00:00
parent a5353e55da
commit 5c896c95d0

View File

@ -148,12 +148,12 @@ fails and Docker Engine returns an error.
### Bridge driver options ### Bridge driver options
When creating a custom network, the default network driver (i.e. `bridge`) has When creating a custom `bridge` network, the following additional options can
additional options that can be passed. The following are those options and the be passed. Some of these have equivalent flags that can be used on the dockerd
equivalent Docker daemon flags used for docker0 bridge: command line or in `daemon.json` to configure the default bridge, `docker0`:
| Option | Equivalent | Description | | Network create option | Daemon option for `docker0` | Description |
|--------------------------------------------------|-------------|-------------------------------------------------------| |--------------------------------------------------|-----------------------------|-------------------------------------------------------|
| `com.docker.network.bridge.name` | - | Bridge name to be used when creating the Linux bridge | | `com.docker.network.bridge.name` | - | Bridge name to be used when creating the Linux bridge |
| `com.docker.network.bridge.enable_ip_masquerade` | `--ip-masq` | Enable IP masquerading | | `com.docker.network.bridge.enable_ip_masquerade` | `--ip-masq` | Enable IP masquerading |
| `com.docker.network.bridge.enable_icc` | `--icc` | Enable or Disable Inter Container Connectivity | | `com.docker.network.bridge.enable_icc` | `--icc` | Enable or Disable Inter Container Connectivity |
@ -163,12 +163,12 @@ equivalent Docker daemon flags used for docker0 bridge:
The following arguments can be passed to `docker network create` for any The following arguments can be passed to `docker network create` for any
network driver, again with their approximate equivalents to Docker daemon network driver, again with their approximate equivalents to Docker daemon
flags used for the docker0 bridge: flags used for the `docker0` bridge:
| Argument | Equivalent | Description | | Network create option | Daemon option for `docker0` | Description |
|--------------|-----------------------------------|--------------------------------------------| |-----------------------|-----------------------------------|--------------------------------------------|
| `--gateway` | - | IPv4 or IPv6 Gateway for the master subnet | | `--gateway` | - | IPv4 or IPv6 Gateway for the master subnet |
| `--ip-range` | `--fixed-cidr`, `--fixed-cidr-v6` | Allocate IPs from a range | | `--ip-range` | `--fixed-cidr`, `--fixed-cidr-v6` | Allocate IP addresses from a range |
| `--internal` | - | Restrict external access to the network | | `--internal` | - | Restrict external access to the network |
| `--ipv6` | `--ipv6` | Enable or disable IPv6 networking | | `--ipv6` | `--ipv6` | Enable or disable IPv6 networking |
| `--subnet` | `--bip`, `--bip6` | Subnet for network | | `--subnet` | `--bip`, `--bip6` | Subnet for network |