Pin docker API version to 1.21
This commit is contained in:
1 parent
1539009362
commit
776ccac00a
1 file changed
+2
-1
+2
-1
@@ -55,7 +55,8 @@ func main() {
|
|||||||
|
|
||||||
Log.Println("Weave plugin", version, "Command line options:", os.Args[1:])
|
Log.Println("Weave plugin", version, "Command line options:", os.Args[1:])
|
||||||
|
|
||||||
dockerClient, err := docker.NewClient("unix:///var/run/docker.sock")
|
// API 1.21 is the first version that supports docker network commands
|
||||||
|
dockerClient, err := docker.NewVersionedClient("unix:///var/run/docker.sock", "1.21")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
Log.Fatalf("unable to connect to docker: %s", err)
|
Log.Fatalf("unable to connect to docker: %s", err)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user