Create linux spec for runc spec command

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
Michael Crosby
2015-07-02 09:59:30 -07:00
parent f4c35e70d1
commit 845fc65e54
6 changed files with 417 additions and 349 deletions
+3 -2
View File
@@ -165,8 +165,9 @@ func getDefaultImagePath(context *cli.Context) string {
// spec and stdio from the current process.
func newProcess(p specs.Process) *libcontainer.Process {
return &libcontainer.Process{
Args: p.Args,
Env: p.Env,
Args: p.Args,
Env: p.Env,
// TODO: fix libcontainer's API to better support uid/gid in a typesafe way.
User: fmt.Sprintf("%d:%d", p.User.Uid, p.User.Gid),
Cwd: p.Cwd,
Stdin: os.Stdin,