2015-04-27 18:20:44 -04:00
|
|
|
// +build linux
|
|
|
|
|
2014-03-05 04:40:55 -05:00
|
|
|
package execdrivers
|
|
|
|
|
|
|
|
import (
|
2015-01-07 19:22:42 -05:00
|
|
|
"path"
|
|
|
|
|
2014-07-24 18:19:50 -04:00
|
|
|
"github.com/docker/docker/daemon/execdriver"
|
|
|
|
"github.com/docker/docker/daemon/execdriver/native"
|
|
|
|
"github.com/docker/docker/pkg/sysinfo"
|
2014-03-05 04:40:55 -05:00
|
|
|
)
|
|
|
|
|
2015-07-27 20:43:22 -04:00
|
|
|
// NewDriver returns a new execdriver.Driver from the given name configured with the provided options.
|
2015-11-30 04:04:13 -05: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 04:40:55 -05:00
|
|
|
}
|