2015-04-27 15:20:44 -07:00
|
|
|
// +build linux
|
|
|
|
|
2014-03-05 10:40:55 +01:00
|
|
|
package execdrivers
|
|
|
|
|
|
|
|
import (
|
2015-01-07 16:22:42 -08:00
|
|
|
"path"
|
|
|
|
|
2014-07-24 22:19:50 +00:00
|
|
|
"github.com/docker/docker/daemon/execdriver"
|
|
|
|
"github.com/docker/docker/daemon/execdriver/native"
|
|
|
|
"github.com/docker/docker/pkg/sysinfo"
|
2014-03-05 10:40:55 +01:00
|
|
|
)
|
|
|
|
|
2015-07-28 08:43:22 +08:00
|
|
|
// NewDriver returns a new execdriver.Driver from the given name configured with the provided options.
|
2015-11-30 10:04:13 +01:00
|
|
|
func NewDriver(options []string, root, libPath string, sysInfo *sysinfo.SysInfo) (execdriver.Driver, error) {
|
|
|
|
return native.NewDriver(path.Join(root, "execdriver", "native"), options)
|
2014-03-05 10:40:55 +01:00
|
|
|
}
|