Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com> Upstream-commit: 7acea2a243d25c061d12a2a2f8bbd4e5955a85f4 Component: engine
17 lines
292 B
Go
17 lines
292 B
Go
// +build !linux
|
|
|
|
package runc
|
|
|
|
import (
|
|
"context"
|
|
"os/exec"
|
|
)
|
|
|
|
func (r *Runc) command(context context.Context, args ...string) *exec.Cmd {
|
|
command := r.Command
|
|
if command == "" {
|
|
command = DefaultCommand
|
|
}
|
|
return exec.CommandContext(context, command, append(r.args(), args...)...)
|
|
}
|