mirror of https://github.com/docker/docs.git
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:
parent
e1d8136a12
commit
93289fec4b
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue