You are not logged in.

#1 2024-10-27 18:15:17

vecino
Member
Registered: 2022-12-10
Posts: 139

[SOLVED] Docker and module ip6_tables not found

Please, do you have any idea how to solve this? Unfortunately Docker can't use nftables, otherwise I would like to get rid of iptables.

level=warning msg="Controller.NewNetwork unms_internal:" error="failed to create DOCKER-USER IPV6 chain: iptables failed: ip6tables --wait -t filter -N DOCKER-USER: modprobe: FATAL: Module ip6_tables not found in directory /lib/modules/6.6.58-1-lts\nip6tables v1.8.10 (legacy): can't initialize ip6tables table `filter': Table does not exist (do you need to insmod?)\nPerhaps ip6tables or your kernel needs to be upgraded.\n (exit status 3)"
# docker -v
Docker version 27.3.1, build ce1223035a

# uname -a
Linux uisp 6.6.58-1-lts #1 SMP PREEMPT_DYNAMIC Wed, 23 Oct 2024 17:28:15 +0000 x86_64 GNU/Linux

# ip6tables -L -n -v
modprobe: FATAL: Module ip6_tables not found in directory /lib/modules/6.6.58-1-lts
ip6tables v1.8.10 (legacy): can't initialize ip6tables table `filter': Table does not exist (do you need to insmod?)
Perhaps ip6tables or your kernel needs to be upgraded.

iptables (IPv4) is working without problems.

Thanks

Last edited by vecino (2024-10-27 21:53:20)

Offline

#2 2024-10-27 18:19:20

gromit
Package Maintainer (PM)
From: Germany
Registered: 2024-02-10
Posts: 702
Website

Re: [SOLVED] Docker and module ip6_tables not found

Did you reboot after kernel update? I.e. does uname -a match the output of pacman -Q linux-lts?

Offline

#3 2024-10-27 18:42:14

vecino
Member
Registered: 2022-12-10
Posts: 139

Re: [SOLVED] Docker and module ip6_tables not found

Yes, the reboot has taken place. Yes they match:

# pacman -Q linux-lts
linux-lts 6.6.58-1

# uname -a
Linux ubiquiti 6.6.58-1-lts

I guess I haven't written an important thing yet - I have this problem in the Incus container (I tried both privileged and unprivileged). I'm aware that Docker is not recommended to run in another container, but I have a specific usecase when I need it that way.

If I use incus launch images:ubuntu/noble or incus launch images:debian/12 , there is no problem. But if I use incus launch images:archlinux/current/amd64 I have this problem. So it looks more like a problem of the image with the arch.

https://wiki.archlinux.org/title/Incus
https://wiki.archlinux.org/title/Docker

Offline

#4 2024-10-27 18:54:44

gromit
Package Maintainer (PM)
From: Germany
Registered: 2024-02-10
Posts: 702
Website

Re: [SOLVED] Docker and module ip6_tables not found

Hm this could also be another case of the issue mentioned in https://github.com/tailscale/tailscale/ … 2424752914, does it work when you downgrade the kernel to 6.6.56?

Offline

#5 2024-10-27 19:05:16

vecino
Member
Registered: 2022-12-10
Posts: 139

Re: [SOLVED] Docker and module ip6_tables not found

Bingo! Yes, it's because of that. I hadn't thought of that and googled quite a bit.

Thanks @gromit smile

Offline

Board footer

Powered by FluxBB