mirror of https://github.com/docker/docs.git
Update 06-networks.md (#19563)
* Update 06-networks.md Fix section hierarchy * Update 06-networks.md
This commit is contained in:
parent
fb3182bae2
commit
53c2a296b4
|
@ -105,7 +105,7 @@ networks:
|
||||||
|
|
||||||
`enable_ipv6` enables IPv6 networking. For an example, see step four of [Create an IPv6 network](../../config/daemon/ipv6.md).
|
`enable_ipv6` enables IPv6 networking. For an example, see step four of [Create an IPv6 network](../../config/daemon/ipv6.md).
|
||||||
|
|
||||||
## external
|
### external
|
||||||
|
|
||||||
If set to `true`:
|
If set to `true`:
|
||||||
- `external` specifies that this network’s lifecycle is maintained outside of that of the application.
|
- `external` specifies that this network’s lifecycle is maintained outside of that of the application.
|
||||||
|
@ -164,12 +164,12 @@ networks:
|
||||||
baz: "0"
|
baz: "0"
|
||||||
```
|
```
|
||||||
|
|
||||||
## internal
|
### internal
|
||||||
|
|
||||||
By default, Compose provides external connectivity to networks. `internal`, when set to `true`, allows you to
|
By default, Compose provides external connectivity to networks. `internal`, when set to `true`, allows you to
|
||||||
create an externally isolated network.
|
create an externally isolated network.
|
||||||
|
|
||||||
## labels
|
### labels
|
||||||
|
|
||||||
Add metadata to containers using `labels`. You can use either an array or a dictionary.
|
Add metadata to containers using `labels`. You can use either an array or a dictionary.
|
||||||
|
|
||||||
|
@ -195,7 +195,7 @@ networks:
|
||||||
|
|
||||||
Compose sets `com.docker.compose.project` and `com.docker.compose.network` labels.
|
Compose sets `com.docker.compose.project` and `com.docker.compose.network` labels.
|
||||||
|
|
||||||
## name
|
### name
|
||||||
|
|
||||||
`name` sets a custom name for the network. The name field can be used to reference networks which contain special characters.
|
`name` sets a custom name for the network. The name field can be used to reference networks which contain special characters.
|
||||||
The name is used as is and is not scoped with the project name.
|
The name is used as is and is not scoped with the project name.
|
||||||
|
@ -218,4 +218,4 @@ networks:
|
||||||
|
|
||||||
## Additional resources
|
## Additional resources
|
||||||
|
|
||||||
For more examples, see [Networking in Compose](../networking.md).
|
For more examples, see [Networking in Compose](../networking.md).
|
||||||
|
|
Loading…
Reference in New Issue