You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Jezza#4255 has been merged, and should (tentatively) fix this.
If you get a chance to test from a build on main, that would be nice.
Alternatively, the fix should come in the next patch release.
Feel free to close this if you can confirm your problem is fixed. Alternatively, will close with the next patch release.
Note that the fix will not unfuck already littered iptables (you likely have to manually flush these rules) - it will prevent it from happening again though.
Activity
apostasie commentedon May 15, 2025
Thanks @Jezza
Can you provide the following:
(where X.Y.Z.W is the non-localhost ip address of your host machine where the container has been started)
And:
Thanks.
apostasie commentedon May 15, 2025
I am especially interested in the last two TBH.
apostasie commentedon May 15, 2025
@AkihiroSuda
Somehow ended-up in a similar situation (albeit rootless, and I have no proof that this is the same problem as @Jezza - albeit a strong hunch)
The bottom-line is very much:
Note the multitude of ips binding to 9043
10.4.0.76, 10.4.0.77, 10.4.0.78, 10.4.0.79...
None of them corresponding to any live container here.
Either this is yet again a variant of CNI plugins "cleanup", or we do have a cleanup problem on our side.
fahedouch commentedon May 15, 2025
while waiting for the fix on the CNI side to be merged, I am working on PR that cleanup container iptable rules using post oci Hook.
apostasie commentedon May 15, 2025
@fahedouch check #4254
Jezza commentedon May 19, 2025
Sorry for the delay.
Lemme post the outputs, and then catch up with the messages.
> sudo nerdctl container inspect nginx
while read -r line; do sudo nsenter --net=$line iptables-save; done < <(lsns -n -u -t net -o PATH) | grep " 8080 "
sudo iptables-save | grep " 8080 "
apostasie commentedon May 19, 2025
Thanks a lot @Jezza - the iptables list IMO confirms that your problem is very much #4253
This should be taken care of as part of #4255 - if you are in a hurry, you can use the patch from (the smaller) #4254
apostasie commentedon Jun 6, 2025
@Jezza #4255 has been merged, and should (tentatively) fix this.
If you get a chance to test from a build on main, that would be nice.
Alternatively, the fix should come in the next patch release.
Feel free to close this if you can confirm your problem is fixed. Alternatively, will close with the next patch release.
Note that the fix will not unfuck already littered iptables (you likely have to manually flush these rules) - it will prevent it from happening again though.