Skip to content

Commit a8b93a5

Browse files
jgentesjoaofnfernandes
authored andcommitted
Added note to 'ports' section: Port mapping is incompatible with network_mode: host
Took a while to figure this one out. Source: docker/compose#4799 (comment)
1 parent ac1a3b0 commit a8b93a5

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

compose/compose-file/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1380,6 +1380,8 @@ containers in the bare-metal machine's namespace and vise-versa.
13801380
13811381
Expose ports.
13821382
1383+
> **Note:** Port mapping is incompatible with `network_mode: host`
1384+
13831385
#### Short syntax
13841386

13851387
Either specify both ports (`HOST:CONTAINER`), or just the container

0 commit comments

Comments
 (0)