Merge pull request #136 from bernerdschaefer/nsinit-exec-with-flags

DefaultCreateCommand supports command w/ flags
This commit is contained in:
Victor Marmol 2014-07-31 14:24:53 -07:00
commit ef3c88435e
1 changed files with 1 additions and 1 deletions

View File

@ -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...)