github.com/hustcat/docker@v1.3.3-0.20160314103604-901c67a8eeab/daemon/execdriver/execdrivers/execdrivers_linux.go (about) 1 // +build linux 2 3 package execdrivers 4 5 import ( 6 "path" 7 8 "github.com/docker/docker/daemon/execdriver" 9 "github.com/docker/docker/daemon/execdriver/native" 10 "github.com/docker/docker/pkg/sysinfo" 11 ) 12 13 // NewDriver returns a new execdriver.Driver from the given name configured with the provided options. 14 func NewDriver(options []string, root, libPath string, sysInfo *sysinfo.SysInfo) (execdriver.Driver, error) { 15 return native.NewDriver(path.Join(root, "execdriver", "native"), options) 16 }