← All notes

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

Sources

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

Permanent ID: iil:note:0p7j70j9

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.},
}

Markdown

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.

All artifact files (JSON index)

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.