github.com/ncdc/docker@v0.10.1-0.20160129113957-6c6729ef5b74/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  }