You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This fixes some Markup and formatting
issues in the network documentation;
- wrap text to 80 chars
- add missing language hints for code examples
- add missing line continuations (\)
- update USAGE output for Cobra
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Creates a new network with a name specified by the user
16
-
17
-
--aux-address=map[] Auxiliary ipv4 or ipv6 addresses used by network driver
18
-
-d --driver=DRIVER Driver to manage the Network bridge or overlay. The default is bridge.
19
-
--gateway=[] ipv4 or ipv6 Gateway for the master subnet
20
-
--help Print usage
21
-
--internal Restricts external access to the network
22
-
--ip-range=[] Allocate container ip from a sub-range
23
-
--ipam-driver=default IP Address Management Driver
24
-
--ipam-opt=map[] Set custom IPAM driver specific options
25
-
--ipv6 Enable IPv6 networking
26
-
--label=[] Set metadata on a network
27
-
-o --opt=map[] Set custom driver specific options
28
-
--subnet=[] Subnet in CIDR format that represents a network segment
13
+
```markdown
14
+
Usage: docker network create [OPTIONS]
15
+
16
+
Create a network
17
+
18
+
Options:
19
+
--aux-address value auxiliary ipv4 or ipv6 addresses used by Network
20
+
driver (default map[])
21
+
-d, --driver string Driver to manage the Network (default "bridge")
22
+
--gateway value ipv4 or ipv6 Gateway for the master subnet (default [])
23
+
--help Print usage
24
+
--internal restricts external access to the network
25
+
--ip-range value allocate container ip from a sub-range (default [])
26
+
--ipam-driver string IP Address Management Driver (default "default")
27
+
--ipam-opt value set IPAM driver specific options (default map[])
28
+
--ipv6 enable IPv6 networking
29
+
--label value Set metadata on a network (default [])
30
+
-o, --opt value Set driver specific options (default map[])
31
+
--subnet value subnet in CIDR format that represents a
32
+
network segment (default [])
33
+
```
29
34
30
35
Creates a new network. The `DRIVER` accepts `bridge` or `overlay` which are the
31
36
built-in network drivers. If you have installed a third party or your own custom
@@ -51,7 +56,7 @@ conditions are:
51
56
* A cluster of hosts with connectivity to the key-value store.
52
57
* A properly configured Engine `daemon` on each host in the cluster.
53
58
54
-
The `docker daemon` options that support the `overlay` network are:
59
+
The `dockerd` options that support the `overlay` network are:
55
60
56
61
*`--cluster-store`
57
62
*`--cluster-store-opt`
@@ -98,36 +103,52 @@ disconnect` command.
98
103
99
104
## Specifying advanced options
100
105
101
-
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:
106
+
When you create a network, Engine creates a non-overlapping subnetwork for the
107
+
network by default. This subnetwork is not a subdivision of an existing
108
+
network. It is purely for ip-addressing purposes. You can override this default
109
+
and specify subnetwork values directly using the `--subnet` option. On a
110
+
`bridge` network you can only create a single subnet:
0 commit comments