Skip to content

Commit

Permalink
Ensure we use the native SSH driver with docker machine.
Browse files Browse the repository at this point in the history
This gives me a huge speedup with the xhyve driver.
  • Loading branch information
dlorenc committed Jul 26, 2017
1 parent 45eabf6 commit eafb4fc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/minikube/cluster/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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.
Expand Down

0 comments on commit eafb4fc

Please sign in to comment.