提交 7564651d 编写于 作者: M Medya Gh

make docker driver highly prefered

上级 c134ab83
......@@ -37,21 +37,12 @@ import (
var docURL = "https://minikube.sigs.k8s.io/docs/drivers/docker/"
func init() {
priority := registry.Default
// Staged rollout for preferred:
// - Linux
// - Windows (once "service" command works)
// - macOS
if runtime.GOOS == "linux" {
priority = registry.Preferred
}
if err := registry.Register(registry.DriverDef{
Name: driver.Docker,
Config: configure,
Init: func() drivers.Driver { return kic.NewDriver(kic.Config{OCIBinary: oci.Docker}) },
Status: status,
Priority: priority,
Priority: registry.HighlyPreferred,
}); err != nil {
panic(fmt.Sprintf("register failed: %v", err))
}
......
......@@ -45,6 +45,8 @@ const (
Default
// Preferred is for drivers that use a native hypervisor interface
Preferred
// HighlyPreferred is the ultimate driver preferences
HighlyPreferred
)
// Registry contains all the supported driver definitions on the host
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册