Skip to content

Commit bfedbe3

Browse files
author
Jonathan Owens
committed
Correct host_port documentation in host/container network modes.
1 parent a6927a0 commit bfedbe3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -249,8 +249,10 @@ set :network_mode, 'networkmode'
249249
Docker (and therefore Centurion) supports one of `bridge` (the default), `host`,
250250
and `container:<container-id>` for this argument.
251251

252-
*Note:* While `host_port` remains required, the mappings specified in it are
253-
*ignored* when using `host` and `container...` network modes.
252+
In `host` and `container...` network modes, you may specify a
253+
`host_port, container_port` mapping, however the port numbers will only be used
254+
for container health checks. The mapping itself, while still passed via the API,
255+
will be ignored by Docker.
254256

255257
### CGroup Resource Constraints
256258

0 commit comments

Comments
 (0)