mirror of
https://github.com/clearlinux/libnetwork.git
synced 2026-10-04 07:48:30 +00: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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user