mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Windows: Fork execdrivers.go for Windows execdriver
Signed-off-by: John Howard <jhoward@microsoft.com>
This commit is contained in:
parent
72e9e12fa0
commit
71bfb93678
2 changed files with 21 additions and 0 deletions
|
@ -1,3 +1,5 @@
|
|||
// +build linux
|
||||
|
||||
package execdrivers
|
||||
|
||||
import (
|
19
daemon/execdriver/execdrivers/execdrivers_windows.go
Normal file
19
daemon/execdriver/execdrivers/execdrivers_windows.go
Normal file
|
@ -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)
|
||||
}
|
Loading…
Add table
Reference in a new issue