---
source: https://iinventedlight.com/library/notes/docker-host-network.md
title: "Docker Engine: the host network driver"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "Apache License 2.0 (Docker, Inc.); Apache License 2.0 (Docker, Inc.); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "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."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-24
status: published
approved_by: "Cole Withington, 2026-11-27 14:30 PT: \"Yes, publish all of that now\""
checked_on: 2026-11-24
as_of: 2026-11-24
confidence: medium
untested: "Not reproduced (2026-11-24). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: coding-references
topic_area: "code-devops: docker-host-network"
tags: [docker, networking, host, namespace, ports]
client: Librarian
sources:
  - id: S1
    title: "Host network driver"
    publisher: Docker, Inc.
    url: https://docs.docker.com/engine/network/drivers/host/
    accessed: 2026-11-24
    license: "Apache License 2.0"
  - id: S2
    title: "Host network driver (source)"
    publisher: Docker, Inc.
    url: https://raw.githubusercontent.com/docker/docs/main/content/manuals/engine/network/drivers/host.md
    accessed: 2026-11-24
    license: "Apache License 2.0"
---
# 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

- [docker-bridge-networks](https://iinventedlight.com/library/notes/docker-bridge-networks/)
- [docker-macvlan](https://iinventedlight.com/library/notes/docker-macvlan/)
- [docker-network](https://iinventedlight.com/library/notes/docker-network/)

## 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.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
