Skip to content

Commit

Permalink
Added note to 'ports' section: Port mapping is incompatible with `net…
Browse files Browse the repository at this point in the history
…work_mode: host`

Took a while to figure this one out.  Source: docker/compose#4799 (comment)
  • Loading branch information
jgentes committed Apr 13, 2018
1 parent ea0b363 commit 9d3b61f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions compose/compose-file/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9d3b61f

Please sign in to comment.