diff options
author | gVisor bot <gvisor-bot@google.com> | 2019-06-18 21:54:36 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2019-06-18 21:54:36 +0000 |
commit | dfbde70e972d909e0c10d4b85841b908325095be (patch) | |
tree | c2962c7a40a06ccd80128a185c6eca9beac288c8 /runsc/cmd/run.go | |
parent | 14776d859bc4fc788d0fb6d4def2dd9ec6dcf5e3 (diff) | |
parent | bdb19b82ef2aa1638d98da4b1c55ae7928437f55 (diff) |
Merge bdb19b82 (automated)
Diffstat (limited to 'runsc/cmd/run.go')
-rw-r--r-- | runsc/cmd/run.go | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/runsc/cmd/run.go b/runsc/cmd/run.go index c1734741d..ee14dc3d9 100644 --- a/runsc/cmd/run.go +++ b/runsc/cmd/run.go @@ -81,7 +81,15 @@ func (r *Run) Execute(_ context.Context, f *flag.FlagSet, args ...interface{}) s } specutils.LogSpec(spec) - ws, err := container.Run(id, spec, conf, bundleDir, r.consoleSocket, r.pidFile, r.userLog, r.detach) + runArgs := container.Args{ + ID: id, + Spec: spec, + BundleDir: bundleDir, + ConsoleSocket: r.consoleSocket, + PIDFile: r.pidFile, + UserLog: r.userLog, + } + ws, err := container.Run(conf, runArgs, r.detach) if err != nil { return Errorf("running container: %v", err) } |