Skip to content

Commit 13dfda3

Browse files
committed
clarity
1 parent aa5e265 commit 13dfda3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

content/reference/compose-file/services.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1468,7 +1468,7 @@ platform: linux/arm64/v8
14681468

14691469
> [!NOTE]
14701470
>
1471-
> Port mapping must not be used with `network_mode: host`. This causes a runtime error because `network_mode: host` already exposes container ports directly to the host network, so port mapping isn’t needed.
1471+
> Port mapping must not be used with `network_mode: host`. Doing so causes a runtime error because `network_mode: host` already exposes container ports directly to the host network, so port mapping isn’t needed.
14721472

14731473
#### Short syntax
14741474

@@ -1481,15 +1481,15 @@ in the form:
14811481
- `CONTAINER` is `port | range`.
14821482
- `PROTOCOL` restricts ports to a specified protocol either `tcp` or `upd`(optional). Default is `tcp`.
14831483

1484-
Ports can be either a single value or a range. Host and container must use equivalent ranges.
1484+
Ports can be either a single value or a range. `HOST` and `CONTAINER` must use equivalent ranges.
14851485

1486-
Either specify both ports (`HOST:CONTAINER`), or just the container port. In the latter case,
1486+
You can either specify both ports (`HOST:CONTAINER`), or just the container port. In the latter case,
14871487
the container runtime automatically allocates any unassigned port of the host.
14881488

14891489
`HOST:CONTAINER` should always be specified as a (quoted) string, to avoid conflicts
14901490
with [YAML base-60 float](https://yaml.org/type/float.html).
14911491

1492-
IPv6 addresses can optionally be enclosed in square brackets.
1492+
IPv6 addresses can be enclosed in square brackets.
14931493

14941494
Examples:
14951495

@@ -1510,7 +1510,7 @@ ports:
15101510

15111511
> [!NOTE]
15121512
>
1513-
> If Host IP mapping is not supported by a container engine, Compose rejects
1513+
> If host IP mapping is not supported by a container engine, Compose rejects
15141514
> the Compose file and ignores the specified host IP.
15151515

15161516
#### Long syntax

0 commit comments

Comments
 (0)