mirror of
https://github.com/docker/docs.git
synced 2026-03-27 14:28:47 +07:00
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:
committed by
Joao Fernandes
parent
ac1a3b0e97
commit
a8b93a59ea
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user