#Unable to dagger init
1 messages · Page 1 of 1 (latest)
Hey! Which OS are you running this on?
@mortal laurel by any chance are you in a fedora / centos based system? This seems to be the issue: https://docs.dagger.io/troubleshooting/#dagger-restarts-with-a-cni-setup-error
Fedora 41
Interesting it requires iptables
If this is the case then nftables should be supported
I agree.. thing is that it's not a Dagger specific limitation. Pretty much all the container networking ecosystem currently doesn't support nft https://github.com/containernetworking/plugins/issues/461#issuecomment-2560707129
oh
okay so it requires me to have legacy iptables
$ sudo nft list ruleset
....
# Warning: table ip filter is managed by iptables-nft, do not touch!
table ip filter {
chain DOCKER {
}
chain DOCKER-ISOLATION-STAGE-1 {
iifname "docker0" oifname != "docker0" counter packets 0 bytes 0 jump DOCKER-ISOLATION-STAGE-2
counter packets 0 bytes 0 return
}
chain DOCKER-ISOLATION-STAGE-2 {
oifname "docker0" counter packets 0 bytes 0 drop
counter packets 0 bytes 0 return
}
chain FORWARD {
type filter hook forward priority filter; policy drop;
counter packets 0 bytes 0 jump DOCKER-USER
counter packets 0 bytes 0 jump DOCKER-ISOLATION-STAGE-1
oifname "docker0" ct state related,established counter packets 0 bytes 0 accept
oifname "docker0" counter packets 0 bytes 0 jump DOCKER
iifname "docker0" oifname != "docker0" counter packets 0 bytes 0 accept
iifname "docker0" oifname "docker0" counter packets 0 bytes 0 accept
}
chain DOCKER-USER {
counter packets 0 bytes 0 return
}
}
....
yes this is interesting
So it will work only if I use iptables-legacy?
Yes previously when I was in f35 or 37 It used to work
yes fedora has replaced the iptblaes with nftables
I think you need to load the kernel module described in the docs
okay
Which doesn't come enabled by default
That should be it
The legacy iptables version loaded the module automatically
So restarted the system with the loaded module but still the dagger init showing almost the same error
Does lsmod show the module loaded?
nope
try running sudo modprobe iptable_nat and restarting the engine container afterwards
anyways when using dagger will fist need to load the module
Yes now its working thanks @undone coral
We prefer not to do this since it might affect other things in the user system
We prefer to document it and let the user be aware and handle it as they prefer better