diff --git a/content/reference/compose-file/services.md b/content/reference/compose-file/services.md index 117a5e47a5ec..24906a00d3df 100644 --- a/content/reference/compose-file/services.md +++ b/content/reference/compose-file/services.md @@ -1221,7 +1221,10 @@ There is a performance penalty for applications that swap memory to disk often. - `none`: Turns off all container networking. - `host`: Gives the container raw access to the host's network interface. -- `service:{name}`: Gives the containers access to the specified service only. For more information, see [Container networks](/manuals/engine/network/_index.md#container-networks). +- `service:{name}`: Gives the container access to the specified container by referring to its service name. +- `container:{name}`: Gives the container access to the specified container by referring to its container ID. + +For more information container networks, see the [Docker Engine documentation](/manuals/engine/network/_index.md#container-networks). ```yml network_mode: "host"