Merge pull request #12830 from Microsoft/10662-refactorforwindowsexecdriver
Windows: Fork execdrivers.go for Windows execdriver Upstream-commit: 67c10e762e1227c845e098af83afe5a8faaaf8c3 Component: engine
This commit is contained in:
+2
@@ -1,3 +1,5 @@
|
||||
// +build linux
|
||||
|
||||
package execdrivers
|
||||
|
||||
import (
|
||||
@@ -0,0 +1,19 @@
|
||||
// +build windows
|
||||
|
||||
package execdrivers
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/docker/docker/daemon/execdriver"
|
||||
"github.com/docker/docker/daemon/execdriver/windows"
|
||||
"github.com/docker/docker/pkg/sysinfo"
|
||||
)
|
||||
|
||||
func NewDriver(name, root, libPath, initPath string, sysInfo *sysinfo.SysInfo) (execdriver.Driver, error) {
|
||||
switch name {
|
||||
case "windows":
|
||||
return windows.NewDriver(root, initPath)
|
||||
}
|
||||
return nil, fmt.Errorf("unknown exec driver %s", name)
|
||||
}
|
||||
Reference in New Issue
Block a user