#Unable to dagger init

1 messages · Page 1 of 1 (latest)

mortal laurel
#

Attached the screenshot of errors not sure where it is picking up the namespace

zenith jetty
#

Hey! Which OS are you running this on?

undone coral
mortal laurel
mortal laurel
#

If this is the case then nftables should be supported

undone coral
# mortal laurel 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

GitHub

Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line) /kind feature Description I use nftables; when starting a container I get: ERRO[0000] Error adding network: failed to list ...

mortal laurel
#

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

undone coral
mortal laurel
#

okay

undone coral
#

Which doesn't come enabled by default

#

That should be it

#

The legacy iptables version loaded the module automatically

mortal laurel
#

So restarted the system with the loaded module but still the dagger init showing almost the same error

undone coral
mortal laurel
undone coral
#

try running sudo modprobe iptable_nat and restarting the engine container afterwards

mortal laurel
#

anyways when using dagger will fist need to load the module

#

Yes now its working thanks @undone coral

undone coral
#

We prefer to document it and let the user be aware and handle it as they prefer better