mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
26c03d561a
Signed-off-by: Alexey Guskov <lexag@mail.ru>
19 lines
541 B
Go
19 lines
541 B
Go
// +build freebsd
|
|
|
|
package execdrivers
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/docker/docker/daemon/execdriver"
|
|
"github.com/docker/docker/pkg/sysinfo"
|
|
)
|
|
|
|
// NewDriver returns a new execdriver.Driver from the given name configured with the provided options.
|
|
func NewDriver(name string, options []string, root, libPath, initPath string, sysInfo *sysinfo.SysInfo) (execdriver.Driver, error) {
|
|
switch name {
|
|
case "jail":
|
|
return nil, fmt.Errorf("jail driver not yet supported on FreeBSD")
|
|
}
|
|
return nil, fmt.Errorf("unknown exec driver %s", name)
|
|
}
|