execdrivers_linux.go 508 B

12345678910111213141516
  1. // +build linux
  2. package execdrivers
  3. import (
  4. "path"
  5. "github.com/docker/docker/daemon/execdriver"
  6. "github.com/docker/docker/daemon/execdriver/native"
  7. "github.com/docker/docker/pkg/sysinfo"
  8. )
  9. // NewDriver returns a new execdriver.Driver from the given name configured with the provided options.
  10. func NewDriver(options []string, root, libPath, initPath string, sysInfo *sysinfo.SysInfo) (execdriver.Driver, error) {
  11. return native.NewDriver(path.Join(root, "execdriver", "native"), initPath, options)
  12. }