Closed AndyEWang closed 1 year ago
iptables: Failed to initialize nft: Protocol not supported
This is the error message from kernel.
Linux 3fa10d38f4ef 3.10.0-1127.el7.x86_64 #1 SMP Tue Mar 31 23:36:51 UTC 2020 aarch64 Linux
A 3.10 kernel.
Accoring wikipedia nftables was introduced in kernel 3.13.
This is a problem in the kernel and not something we can fix in the alpine docker image.
But it works in alpine linux/amd64.
/ # uname -a
Linux beb9c0288e79 3.10.0-1127.el7.x86_64 #1 SMP Tue Mar 31 23:36:51 UTC 2020 x86_64 Linux
/ # /sbin/iptables-nft --version
iptables v1.8.7 (nf_tables)
Maybe qemu-user-static doesn't support it and I also open an issue https://github.com/multiarch/qemu-user-static/issues/191
Hope to get any clues from either alpine or qemu-user-static side.
After installing iptables, running cmd /sbin/iptables-nft shows "iptables: Failed to initialize nft: Protocol not supported".
apk add ca-certificates bash libc6-compat iptables ip6tables
docker image tag: alpine:3.17 and alpine:3.17.3