;

Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
Jess Frazelle 2018-03-20 01:54:27 -04:00
parent 99c2e615ee
commit 2b03278aa2
2 changed files with 7 additions and 2 deletions

View file

@ -17,6 +17,7 @@ type SpecOpts struct {
Rootless bool
Readonly bool
Terminal bool
Args []string
Hooks *specs.Hooks
}
@ -50,5 +51,9 @@ func Spec(opts SpecOpts) *specs.Spec {
}
}
if opts.Args != nil {
spec.Process.Args = opts.Args
}
return spec
}