2015-04-27 22:20:44 +00:00
|
|
|
// +build linux
|
|
|
|
|
2014-03-05 09:40:55 +00:00
|
|
|
package execdrivers
|
|
|
|
|
|
|
|
import (
|
2015-01-08 00:22:42 +00: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 09:40:55 +00:00
|
|
|
)
|
|
|
|
|
2015-07-28 00:43:22 +00:00
|
|
|
// NewDriver returns a new execdriver.Driver from the given name configured with the provided options.
|
2015-11-30 09:04:13 +00: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 09:40:55 +00:00
|
|
|
}
|