iptables: Drop explicit RETURN rule from DOCKER-USER#50098
iptables: Drop explicit RETURN rule from DOCKER-USER#50098robmry merged 1 commit intomoby:masterfrom
Conversation
Signed-off-by: Rob Murray <rob.murray@docker.com>
|
the description seems misleading .. same in release notes
instead of |
|
Hi @vin01 - I think the text is ok. Upgraded versions of docker won't delete an existing RETURN rule from the DOCKER-USER chain, but they won't add one either. So, after upgrade, the rule will still be there. But, on reboot, all of the rules are deleted. When the new daemon starts, it won't create the RETURN rule. Does that make sense? |
|
Thanks for the quick response. It does make sense granted that one knows that after a reboot the rules are created afresh, for me I am looking at it in context of #50129 which does not seem like an iptables issue now but something else internally in swarm networking. |
|
Ah, right - makes sense, thank you. Hopefully this discussion will clarify things for anyone else who comes looking. |
- What I did
Stop adding an explicit
RETURNrule to theDOCKER-USERchain - it'll return anyway, and having the rule means users can't append rules to the chain (only insert) without some juggling.Note that this doesn't remove the rule. (So, it'll persist on upgrade but not over reboot.)
- How I did it
- How to verify it
- Human readable description for the release notes