mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
3a1da5c534
Signed-off-by: Tibor Vass <tibor@docker.com>
17 lines
371 B
Go
17 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"},
|
|
})
|
|
}
|