mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
1b726b29b2
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
16 lines
488 B
Go
16 lines
488 B
Go
// +build linux
|
|
|
|
package execdrivers
|
|
|
|
import (
|
|
"path"
|
|
|
|
"github.com/docker/docker/daemon/execdriver"
|
|
"github.com/docker/docker/daemon/execdriver/native"
|
|
"github.com/docker/docker/pkg/sysinfo"
|
|
)
|
|
|
|
// NewDriver returns a new execdriver.Driver from the given name configured with the provided options.
|
|
func NewDriver(options []string, root, libPath string, sysInfo *sysinfo.SysInfo) (execdriver.Driver, error) {
|
|
return native.NewDriver(path.Join(root, "execdriver", "native"), options)
|
|
}
|