Docker Engine: the host network driver
Answer: Host network mode leaves a container's network stack unisolated from the Docker host.
How host mode works
The container shares the host's networking namespace, and it does not get its own IP address allocated.
If a container binds to port 80, its application is available on port 80 on the host's IP address.
Port mapping does not take effect in this mode, and publish flags are ignored with a warning.
When it is useful
Host mode networking can be useful when you want to optimize performance.
It can also help when a container needs to handle a large range of ports.
No network address translation is required, and no userland proxy is created for each port.
The host networking driver is supported on Docker Engine on Linux, and on recent Docker Desktop after the feature is enabled.
See also
Claims
- id: C1 claim: In host mode the container does not get its own IP address. source: S1 evidence: "the container doesn't get its own IP-address allocated"
- id: C2 claim: Host mode networking can be useful to optimize performance. source: S1 evidence: "Host mode networking can be useful for the following use cases"
- id: C3 claim: In host mode the container does not get its own IP address. source: S2 evidence: "the container doesn't get its own IP-address allocated"
- id: C4 claim: Host mode networking can be useful to optimize performance. source: S2 evidence: "Host mode networking can be useful for the following use cases"
Sources
- [S1] Host network driver. Docker, Inc.. https://docs.docker.com/engine/network/drivers/host/ . License: Apache License 2.0. Accessed 2026-11-24.
- [S2] Host network driver (source). Docker, Inc.. https://raw.githubusercontent.com/docker/docs/main/content/manuals/engine/network/drivers/host.md . License: Apache License 2.0. Accessed 2026-11-24.
License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Docker, Inc., Host network driver; Docker, Inc., Host network driver (source). Apache-2.0 (https://raw.githubusercontent.com/docker/docs/main/LICENSE). Copyright Docker, Inc. Text was condensed and changed from the originals.
License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: Docker, Inc., Host network driver; Docker, Inc., Host network driver (source). Apache-2.0 (https://raw.githubusercontent.com/docker/docs/main/LICENSE). Copyright Docker, Inc.
Cite this
iinventedlight. 2026. "Docker Engine: the host network driver." iinventedlight Library, iil:note:0p7j70j9, version of 2026-11-24. https://iinventedlight.com/library/notes/docker-host-network/. License: CC-BY-4.0.
@misc{iil_note_0p7j70j9,
author = {{iinventedlight}},
title = {{Docker Engine: the host network driver}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-24},
url = {https://iinventedlight.com/library/notes/docker-host-network/},
note = {Permanent ID iil:note:0p7j70j9. License: CC-BY-4.0.},
}
Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).
Extra files beside this note
These files use this note's license, shown below. Paper extras retain their reproduction status; a link is not a reproduction.
- docker-host-network.schema.json (schema; CC-BY-4.0)
- docker-host-network.table.json (table; CC-BY-4.0)
For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/docker-host-network.md.