Skip to content

Commit eafb4fc

Browse files
committed
Ensure we use the native SSH driver with docker machine.
This gives me a huge speedup with the xhyve driver.
1 parent 45eabf6 commit eafb4fc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/minikube/cluster/cluster.go

+3
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ import (
3434
"github.com/docker/machine/libmachine/engine"
3535
"github.com/docker/machine/libmachine/host"
3636
"github.com/docker/machine/libmachine/mcnerror"
37+
"github.com/docker/machine/libmachine/ssh"
3738
"github.com/docker/machine/libmachine/state"
3839
"github.com/golang/glog"
3940
"github.com/pkg/errors"
@@ -56,6 +57,8 @@ const fileScheme = "file"
5657
//see: https://github.com/kubernetes/kubernetes/blob/master/pkg/util/logs/logs.go#L32-34
5758
func init() {
5859
flag.Set("logtostderr", "false")
60+
// Setting the default client to native gives much better performance.
61+
ssh.SetDefaultClient(ssh.Native)
5962
}
6063

6164
// StartHost starts a host VM.

0 commit comments

Comments
 (0)