1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Reuse existing docker chain constant in link.go

- in bridge driver

Signed-off-by: Alessandro Boch <aboch@docker.com>
This commit is contained in:
Alessandro Boch 2015-05-04 23:53:32 -07:00
parent 706c01073d
commit eb98e212cb

View file

@ -69,7 +69,7 @@ func linkContainers(action, parentIP, childIP string, ports []netutils.PortBindi
return InvalidLinkIPAddrError(childIP)
}
chain := iptables.Chain{Name: "DOCKER", Bridge: bridge}
chain := iptables.Chain{Name: DockerChain, Bridge: bridge}
for _, port := range ports {
err := chain.Link(nfAction, ip1, ip2, int(port.Port), port.Proto.String())
if !ignoreErrors && err != nil {