Flush iptables chains DOCKER-CT, DOCKER-BRIDGE on startup

These chains were added in commit 76417bf ("Don't use ipset"), but
not included in the list of chains that get flushed and deleted
on daemon startup.

Signed-off-by: Rob Murray <rob.murray@docker.com>
This commit is contained in:
Rob Murray
2025-03-05 11:47:36 +00:00
parent 65c2f799b4
commit 26edf2d0a7

View File

@@ -677,6 +677,8 @@ func removeIPChains(version iptables.IPVersion) {
{Name: DockerChain, Table: iptables.Nat, IPVersion: version},
{Name: DockerChain, Table: iptables.Filter, IPVersion: version},
{Name: DockerForwardChain, Table: iptables.Filter, IPVersion: version},
{Name: DockerBridgeChain, Table: iptables.Filter, IPVersion: version},
{Name: DockerCTChain, Table: iptables.Filter, IPVersion: version},
{Name: IsolationChain1, Table: iptables.Filter, IPVersion: version},
{Name: IsolationChain2, Table: iptables.Filter, IPVersion: version},
{Name: oldIsolationChain, Table: iptables.Filter, IPVersion: version},