support alternate DOCKER_HOST settings when launching the plugin
This commit is contained in:
1 parent
f28ad350bd
commit
a4ef96690e
2 files changed
+15
-5
No files matched your search
+1
-1
@@ -49,7 +49,7 @@ func main() {
|
||||
Log.Println("Weave plugin", version, "Command line options:", os.Args[1:])
|
||||
|
||||
// API 1.21 is the first version that supports docker network commands
|
||||
dockerClient, err := docker.NewVersionedClient("unix:///var/run/docker.sock", "1.21")
|
||||
dockerClient, err := docker.NewVersionedClientFromEnv("1.21")
|
||||
if err != nil {
|
||||
Log.Fatalf("unable to connect to docker: %s", err)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user