Windows: Fork execdrivers.go for Windows execdriver

Signed-off-by: John Howard <jhoward@microsoft.com>
Upstream-commit: 71bfb9367880632fd0dbda5e37e926448473ef46
Component: engine
This commit is contained in:
John Howard
2015-04-27 15:20:44 -07:00
parent 585f4aedc7
commit d1a42b50d1
2 changed files with 21 additions and 0 deletions

View 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)
}