mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
16 lines
292 B
Go
16 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...)...)
|
|
}
|