mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
18 lines
371 B
Go
18 lines
371 B
Go
![]() |
// +build !windows
|
||
|
|
||
|
package buildkit
|
||
|
|
||
|
import (
|
||
|
"path/filepath"
|
||
|
|
||
|
"github.com/moby/buildkit/executor"
|
||
|
"github.com/moby/buildkit/executor/runcexecutor"
|
||
|
)
|
||
|
|
||
|
func newExecutor(root string) (executor.Executor, error) {
|
||
|
return runcexecutor.New(runcexecutor.Opt{
|
||
|
Root: filepath.Join(root, "executor"),
|
||
|
CommandCandidates: []string{"docker-runc", "runc"},
|
||
|
})
|
||
|
}
|