---
source: https://iinventedlight.com/library/notes/docker-nftables.md
title: "Docker Engine: nftables firewall backend"
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., 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."
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-nftables"
tags: [docker, nftables, iptables, firewall, networking]
client: Librarian
sources:
  - id: S1
    title: "Packet filtering and firewalls with nftables"
    publisher: Docker, Inc.
    url: https://docs.docker.com/engine/network/firewall-nftables/
    accessed: 2026-11-24
    license: "Apache License 2.0"
  - id: S2
    title: "Packet filtering and firewalls with nftables (source)"
    publisher: Docker, Inc.
    url: https://raw.githubusercontent.com/docker/docs/main/content/manuals/engine/network/firewall-nftables.md
    accessed: 2026-11-24
    license: "Apache License 2.0"
---
# 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

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

## 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-USER` chain."

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

---

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