Merge pull request #2148 from weaveworks/issues/2146-cni-sock

Bind-mount the docker socket for CNI plugin

Fixes #2146
This commit is contained in:
Matthias Radestock committed 2016-04-11 16:03:14 +01:00
commit d1ca38e106
3 files changed
+41 -28

No files matched your search

+3
View File
@@ -27,6 +27,9 @@ func (i *Ipam) Allocate(args *skel.CmdArgs) (*types.Result, error) {
conf = &ipamConf{}
}
containerID := args.ContainerID
if containerID == "" {
return nil, fmt.Errorf("Weave CNI Allocate: blank container name")
}
var ipnet *net.IPNet
if conf.Subnet == "" {