From 93289fec4b9167aa5a1a119c78a17daa78c510a1 Mon Sep 17 00:00:00 2001 From: Allie Sadler <102604716+aevesdocker@users.noreply.github.com> Date: Tue, 29 Oct 2024 09:43:27 +0000 Subject: [PATCH] ENGDOCS-2278 (#21256) ## Description Closes https://github.com/docker/docs/issues/21247 ## Related issues or tickets ## Reviews - [ ] Technical review - [ ] Editorial review - [ ] Product review --- content/reference/compose-file/services.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/content/reference/compose-file/services.md b/content/reference/compose-file/services.md index 117a5e47a5..24906a00d3 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"