Added note to 'ports' section: Port mapping is incompatible with network_mode: host

Took a while to figure this one out.  Source: https://github.com/docker/compose/issues/4799#issuecomment-299605031
This commit is contained in:
James Gentes
2018-04-13 10:57:12 -07:00
committed by Joao Fernandes
parent ac1a3b0e97
commit a8b93a59ea

View File

@@ -1380,6 +1380,8 @@ containers in the bare-metal machine's namespace and vise-versa.
Expose ports.
> **Note:** Port mapping is incompatible with `network_mode: host`
#### Short syntax
Either specify both ports (`HOST:CONTAINER`), or just the container