Skip to content

[Bug]: nf_tables not initialized - Docker daemon fails inside containers #1002

@jmgilman

Description

@jmgilman

I have done the following

  • I have searched the existing issues
  • If possible, I've reproduced the issue using the 'main' branch of this project

Steps to reproduce

# 1. Start a systemd-enabled container
container run -d --name dind-test --memory 8g jrei/systemd-ubuntu:22.04
sleep 15

# 2. Install Docker
container exec dind-test bash -c "
  apt-get update && apt-get install -y ca-certificates curl
  install -m 0755 -d /etc/apt/keyrings
  curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
  chmod a+r /etc/apt/keyrings/docker.asc
  echo 'deb [arch=arm64 signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu jammy stable' > /etc/apt/sources.list.d/docker.list
  apt-get update && apt-get install -y docker-ce docker-ce-cli containerd.io
"

# 3. Try to start Docker (fails)
container exec dind-test systemctl start docker
container exec dind-test journalctl -u docker --no-pager | tail -20

Current behavior

Docker fails with:

failed to create NAT chain DOCKER: iptables failed: iptables --wait -t nat -N DOCKER:
iptables v1.8.7 (nf_tables): Could not fetch rule set generation id: Invalid argument

Expected behavior

Docker daemon starts successfully.

Environment

- OS: 26.2 (Tahoe)
- Xcode: 26.2
- Container: 0.7.1

Relevant log output

N/A

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions