Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions 16 docs/reference/commandline/network_create.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,10 @@ fails and Docker Engine returns an error.

### Bridge driver options

When creating a custom `bridge` network, the following additional options can
be passed. Some of these have equivalent flags that can be used on the dockerd
command line or in `daemon.json` to configure the default bridge, `docker0`:
When creating a custom `bridge` network, you can configure driver options using
the `--opt` flag. Some of these options have equivalent flags that can be used
on the dockerd command line or in `daemon.json` to configure the default bridge,
`docker0`:

| Network create option | Daemon option for `docker0` | Description |
|--------------------------------------------------|-----------------------------|-------------------------------------------------------|
Expand All @@ -162,6 +163,15 @@ command line or in `daemon.json` to configure the default bridge, `docker0`:
| `com.docker.network.driver.mtu` | `--mtu` | Set the containers network MTU |
| `com.docker.network.container_iface_prefix` | - | Set a custom prefix for container interfaces |

For example, to create a custom `bridge` network with IP masquerading disabled:

```console
$ docker network create \
--driver bridge \
--opt com.docker.network.bridge.enable_ip_masquerade=false \
no-masq-network
```

The following arguments can be passed to `docker network create` for any
network driver, again with their approximate equivalents to Docker daemon
flags used for the `docker0` bridge:
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.