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
Copy file name to clipboardExpand all lines: content/reference/compose-file/services.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1468,7 +1468,7 @@ platform: linux/arm64/v8
1468
1468
1469
1469
> [!NOTE]
1470
1470
>
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.
1472
1472
1473
1473
#### Short syntax
1474
1474
@@ -1481,15 +1481,15 @@ in the form:
1481
1481
- `CONTAINER`is `port | range`.
1482
1482
- `PROTOCOL`restricts ports to a specified protocol either `tcp` or `upd`(optional). Default is `tcp`.
1483
1483
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.
1485
1485
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,
1487
1487
the container runtime automatically allocates any unassigned port of the host.
1488
1488
1489
1489
`HOST:CONTAINER`should always be specified as a (quoted) string, to avoid conflicts
1490
1490
with [YAML base-60 float](https://yaml.org/type/float.html).
1491
1491
1492
-
IPv6 addresses can optionally be enclosed in square brackets.
1492
+
IPv6 addresses can be enclosed in square brackets.
1493
1493
1494
1494
Examples:
1495
1495
@@ -1510,7 +1510,7 @@ ports:
1510
1510
1511
1511
> [!NOTE]
1512
1512
>
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
1514
1514
> the Compose file and ignores the specified host IP.
0 commit comments