From 283590f5e87a33321db64d876172eb1547037659 Mon Sep 17 00:00:00 2001 From: aevesdocker Date: Mon, 28 Oct 2024 09:27:41 +0000 Subject: [PATCH 1/2] ENGDOCS-2278 --- content/reference/compose-file/services.md | 1 + 1 file changed, 1 insertion(+) diff --git a/content/reference/compose-file/services.md b/content/reference/compose-file/services.md index 117a5e47a5ec..0bbee7755f24 100644 --- a/content/reference/compose-file/services.md +++ b/content/reference/compose-file/services.md @@ -1222,6 +1222,7 @@ 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). +- `container:{name}`: Gives the service container access to the specified container. ```yml network_mode: "host" From ccf26b4757fbf57f674e3ec5f7673188393753dc Mon Sep 17 00:00:00 2001 From: aevesdocker Date: Tue, 29 Oct 2024 09:33:12 +0000 Subject: [PATCH 2/2] clarity --- content/reference/compose-file/services.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/content/reference/compose-file/services.md b/content/reference/compose-file/services.md index 0bbee7755f24..24906a00d3df 100644 --- a/content/reference/compose-file/services.md +++ b/content/reference/compose-file/services.md @@ -1221,8 +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). -- `container:{name}`: Gives the service container access to the specified container. +- `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"