ENGDOCS-2278 (#21256)

<!--Delete sections as needed -->

## Description

Closes https://github.com/docker/docs/issues/21247

## Related issues or tickets

<!-- Related issues, pull requests, or Jira tickets -->

## Reviews

<!-- Notes for reviewers here -->
<!-- List applicable reviews (optionally @tag reviewers) -->

- [ ] Technical review
- [ ] Editorial review
- [ ] Product review
This commit is contained in:
Allie Sadler 2024-10-29 09:43:27 +00:00 committed by GitHub
parent e1d8136a12
commit 93289fec4b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

View File

@ -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"