-
Notifications
You must be signed in to change notification settings - Fork 398
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
table `nat' is incompatible, use 'nft' tool #114
Comments
It would be great to have support to iptables v1.8.7 without downgrade. Update: following didn't worked after all, docker was failing to create any networks after downgrade:
|
I was able to get this work by renaming the DOCKER-INGRESS chain to just DOCKER here I.e. from this: target_ip_port="$(iptables -t nat -L DOCKER-INGRESS | grep -E "^DNAT\\s+${proto}\\s+.+\\sto:[.0-9]+:${port}\$" | grep -Eo "[.0-9]+:${port}\$")" to this: target_ip_port="$(iptables -t nat -L DOCKER | grep -E "^DNAT\\s+${proto}\\s+.+\\sto:[.0-9]+:${port}\$" | grep -Eo "[.0-9]+:${port}\$")" I am not sure if this is because Docker has changed how they implement their chains, or if my setup is different from the usual setup. I am running Ubuntu 20.04.4 with Docker engine version 26.1.4. My Swarm consists of a single node with a few services that all only have 1 replica for each. If this is a bug that should be fixed, I can create a pull request with the necessary changes. @petrprikryl Can you try my solution by building the image locally and see if it fixes your problem aswell? |
Hi @akselerando Thank you for the solution. Is it because of the changes in the latest version of Docker? Or is it an issue that is dependent on the operating system? I tried the latest version of Docker on Debian earlier this year, but I couldn't reproduce this issue. Can you reproduce this issue by making changes to this Vagrantfile? |
Thank you for a quick reply! I tried to research what has changed, but could not find anything concrete. I will try to reproduce this issue next week:) |
Update: I've been testing some more and I think i figured out the issue. By changing the mode to the default value, the chain is created as intended. This probably means that the error i got is just caused by my edge-case of not running any services with the ingress mode. Still, this tool seems to solve my issue with ufw + Docker. Any thoughts on my use-case @chaifeng ? In any case, it would probably be wise to wrap the iptables lookup in some error handling and print an appropriate error if the chain is missing in order to avoid misinterpretation of the error presented in the initial post here. Let me know what solution you prefer, and I'll create a PR:) |
Thank you for the update. It looks that this modification requires using |
Hi, I have problem starting ufw-docker-agent service in swarm mode on Debian 12 bookworm.
I have tried 221002-nf_tables and latest tags with same error.
The text was updated successfully, but these errors were encountered: