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:
parent
706c01073d
commit
eb98e212cb
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue