From eafb4fcdbe935d6dd8dc07526ff869a15a6d6c47 Mon Sep 17 00:00:00 2001 From: dlorenc Date: Sat, 22 Jul 2017 08:44:47 -0700 Subject: [PATCH] Ensure we use the native SSH driver with docker machine. This gives me a huge speedup with the xhyve driver. --- pkg/minikube/cluster/cluster.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/minikube/cluster/cluster.go b/pkg/minikube/cluster/cluster.go index 881dd47d6c20..ed0064d22a25 100644 --- a/pkg/minikube/cluster/cluster.go +++ b/pkg/minikube/cluster/cluster.go @@ -34,6 +34,7 @@ import ( "github.com/docker/machine/libmachine/engine" "github.com/docker/machine/libmachine/host" "github.com/docker/machine/libmachine/mcnerror" + "github.com/docker/machine/libmachine/ssh" "github.com/docker/machine/libmachine/state" "github.com/golang/glog" "github.com/pkg/errors" @@ -56,6 +57,8 @@ const fileScheme = "file" //see: https://github.com/kubernetes/kubernetes/blob/master/pkg/util/logs/logs.go#L32-34 func init() { flag.Set("logtostderr", "false") + // Setting the default client to native gives much better performance. + ssh.SetDefaultClient(ssh.Native) } // StartHost starts a host VM.