Merge pull request #136 from bernerdschaefer/nsinit-exec-with-flags
DefaultCreateCommand supports command w/ flags
This commit is contained in:
commit
ef3c88435e
|
@ -133,7 +133,7 @@ func DefaultCreateCommand(container *libcontainer.Config, console, rootfs, dataP
|
|||
}
|
||||
*/
|
||||
|
||||
command := exec.Command(init, append([]string{"init"}, args...)...)
|
||||
command := exec.Command(init, append([]string{"init", "--"}, args...)...)
|
||||
// make sure the process is executed inside the context of the rootfs
|
||||
command.Dir = rootfs
|
||||
command.Env = append(os.Environ(), env...)
|
||||
|
|
Loading…
Reference in New Issue