Skip to content

Commit 685cb30

Browse files
authored
Merge pull request #19833 from dvdksn/com.docker.network.bridge.inhibit_ipv4
network: com.docker.network.bridge.inhibit_ipv4
2 parents 4ea24ba + 2108ad4 commit 685cb30

File tree

1 file changed

+25
-9
lines changed

1 file changed

+25
-9
lines changed

content/network/drivers/bridge.md

Lines changed: 25 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -105,14 +105,15 @@ flag.
105105
The following table describes the driver-specific options that you can pass to
106106
`--option` when creating a custom network using the `bridge` driver.
107107

108-
| Option | Default | Description |
109-
| ------------------------------------------------ | -------------- | ----------------------------------------------------------- |
110-
| `com.docker.network.bridge.name` | | Interface name to use when creating the Linux bridge. |
111-
| `com.docker.network.bridge.enable_ip_masquerade` | `true` | Enable IP masquerading. |
112-
| `com.docker.network.bridge.enable_icc` | `true` | Enable or Disable inter-container connectivity. |
113-
| `com.docker.network.bridge.host_binding_ipv4` | | Default IP when binding container ports. |
114-
| `com.docker.network.driver.mtu` | `0` (no limit) | Set the containers network Maximum Transmission Unit (MTU). |
115-
| `com.docker.network.container_iface_prefix` | `eth` | Set a custom prefix for container interfaces. |
108+
| Option | Default | Description |
109+
| ------------------------------------------------ | -------------- | --------------------------------------------------------------------------------------------- |
110+
| `com.docker.network.bridge.name` | | Interface name to use when creating the Linux bridge. |
111+
| `com.docker.network.bridge.enable_ip_masquerade` | `true` | Enable IP masquerading. |
112+
| `com.docker.network.bridge.enable_icc` | `true` | Enable or Disable inter-container connectivity. |
113+
| `com.docker.network.bridge.host_binding_ipv4` | | Default IP when binding container ports. |
114+
| `com.docker.network.driver.mtu` | `0` (no limit) | Set the containers network Maximum Transmission Unit (MTU). |
115+
| `com.docker.network.container_iface_prefix` | `eth` | Set a custom prefix for container interfaces. |
116+
| `com.docker.network.bridge.inhibit_ipv4` | `false` | Prevent Docker from [assigning an IP address](#skip-ip-address-configuration) to the network. |
116117

117118
Some of these options are also available as flags to the `dockerd` CLI, and you
118119
can use them to configure the default `docker0` bridge when starting the Docker
@@ -257,9 +258,24 @@ to a single network.
257258
For more information about this limitation, see
258259
[moby/moby#44973](https://github.com/moby/moby/issues/44973#issuecomment-1543747718).
259260

261+
## Skip IP address configuration
262+
263+
The `com.docker.network.bridge.inhibit_ipv4` option lets you create a network
264+
that uses an existing bridge and have Docker skip configuring the IPv4 address
265+
on the bridge. This is useful if you want to configure the IP address for the
266+
bridge manually. For instance if you add a physical interface to your bridge,
267+
and need to move its IP address to the bridge interface.
268+
269+
To use this option, you should first configure the Docker daemon to use a
270+
self-managed bridge, using the `bridge` option in the `daemon.json` or the
271+
`dockerd --bridge` flag.
272+
273+
With this configuration, north-south traffic won't work unless you've manually
274+
configured the IP address for the bridge.
275+
260276
## Next steps
261277

262278
- Go through the [standalone networking tutorial](../network-tutorial-standalone.md)
263279
- Learn about [networking from the container's point of view](../index.md)
264280
- Learn about [overlay networks](overlay.md)
265-
- Learn about [Macvlan networks](macvlan.md)
281+
- Learn about [Macvlan networks](macvlan.md)

0 commit comments

Comments
 (0)