diff --git a/compose/compose-file/index.md b/compose/compose-file/index.md index 6f4ac4779b..f332495f6c 100644 --- a/compose/compose-file/index.md +++ b/compose/compose-file/index.md @@ -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