mirror of https://github.com/docker/docs.git
docs: correct network create command
Signed-off-by: Shijiang Wei <mountkin@gmail.com>
This commit is contained in:
parent
b02acfcbe0
commit
041aad6d72
|
|
@ -101,7 +101,7 @@ disconnect` command.
|
||||||
When you create a network, Engine creates a non-overlapping subnetwork for the network by default. This subnetwork is not a subdivision of an existing network. It is purely for ip-addressing purposes. You can override this default and specify subnetwork values directly using the `--subnet` option. On a `bridge` network you can only create a single subnet:
|
When you create a network, Engine creates a non-overlapping subnetwork for the network by default. This subnetwork is not a subdivision of an existing network. It is purely for ip-addressing purposes. You can override this default and specify subnetwork values directly using the `--subnet` option. On a `bridge` network you can only create a single subnet:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker network create -d --subnet=192.168.0.0/16
|
docker network create --driver=bridge --subnet=192.168.0.0/16 br0
|
||||||
```
|
```
|
||||||
Additionally, you also specify the `--gateway` `--ip-range` and `--aux-address` options.
|
Additionally, you also specify the `--gateway` `--ip-range` and `--aux-address` options.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue