Merge pull request #2374 from weaveworks/issues/1726-plugin-arp

Perform arp configuration for plugin-connected containers
This commit is contained in:
Adam Harrison authored and GitHub committed 2016-06-17 10:19:53 +01:00
commit f4798fadf8
5 files changed
+61 -40

No files matched your search

+3 -1
View File
@@ -7,6 +7,7 @@ import (
"net/http"
"os"
"os/signal"
"path"
"strings"
"syscall"
@@ -121,7 +122,8 @@ func run(dockerClient *docker.Client, weave *weaveapi.Client, address, meshAddre
}
func listenAndServe(dockerClient *docker.Client, weave *weaveapi.Client, address string, endChan chan<- error, scope string, withIpam bool) (net.Listener, error) {
d, err := netplugin.New(dockerClient, weave, scope)
name := strings.TrimSuffix(path.Base(address), ".sock")
d, err := netplugin.New(dockerClient, weave, name, scope)
if err != nil {
return nil, err
}