support alternate DOCKER_HOST settings when launching the plugin

This commit is contained in:
Paul Bellamy authored and Bryan Boreham committed 2015-12-15 18:12:31 +00:00
1 parent f28ad350bd
commit a4ef96690e
2 files changed
+15 -5

No files matched your search

+1 -1
View File
@@ -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)
}