Docker Engine: nftables firewall backend
Answer: The rules for overlay networks have not yet been migrated from iptables.
When nftables can be used
For bridge networks, Docker creates nftables rules in the host's network namespace.
These options apply to both iptables and nftables.
Therefore, nftables cannot be enabled when the Docker daemon is running in Swarm mode.
For bridge and other network types, DNS rules are also created in the container's network namespace.
Rule creation can be disabled using the iptables and ip6tables daemon options.
Tables and user chains
For bridge networks, Docker creates two tables, one for IPv4 bridges and one for IPv6 bridges.
However, the tables and their rules are likely to change between Docker Engine releases.
In Docker's nftables implementation, there is no DOCKER-USER chain.
Disabling rule creation is not recommended for most users as it will likely break container networking.
See also
Claims
- id: C1 claim: The rules for overlay networks have not yet been migrated from iptables. source: S1 evidence: "The rules for overlay networks have not yet been migrated from iptables."
- id: C2 claim: nftables cannot be enabled when the Docker daemon is running in Swarm mode. source: S1 evidence: "nftables cannot be enabled when the Docker daemon is running in Swarm mode."
- id: C3 claim: These options apply to both iptables and nftables. source: S1 evidence: "These options apply to both iptables and nftables."
- id: C4 claim: In Docker's nftables implementation, there is no DOCKER-USER chain. source: S2 evidence: "In Docker's nftables implementation, there is no
DOCKER-USERchain."
Sources
- [S1] Packet filtering and firewalls with nftables. Docker, Inc.. https://docs.docker.com/engine/network/firewall-nftables/ . License: Apache License 2.0. Accessed 2026-11-24.
- [S2] Packet filtering and firewalls with nftables (source). Docker, Inc.. https://raw.githubusercontent.com/docker/docs/main/content/manuals/engine/network/firewall-nftables.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., Packet filtering and firewalls with nftables; Docker, Inc., Packet filtering and firewalls with nftables (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., Packet filtering and firewalls with nftables; Docker, Inc., Packet filtering and firewalls with nftables (source). Apache-2.0 (https://raw.githubusercontent.com/docker/docs/main/LICENSE). Copyright Docker, Inc.
Cite this
iinventedlight. 2026. "Docker Engine: nftables firewall backend." iinventedlight Library, iil:note:wrevs985, version of 2026-11-24. https://iinventedlight.com/library/notes/docker-nftables/. License: CC-BY-4.0.
@misc{iil_note_wrevs985,
author = {{iinventedlight}},
title = {{Docker Engine: nftables firewall backend}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-24},
url = {https://iinventedlight.com/library/notes/docker-nftables/},
note = {Permanent ID iil:note:wrevs985. 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-nftables.schema.json (schema; CC-BY-4.0)
- docker-nftables.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-nftables.md.