summaryrefslogtreecommitdiff
path: root/cmd/kpod/run.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/kpod/run.go')
-rw-r--r--cmd/kpod/run.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/cmd/kpod/run.go b/cmd/kpod/run.go
index 35e2d0be7..275654f65 100644
--- a/cmd/kpod/run.go
+++ b/cmd/kpod/run.go
@@ -28,10 +28,10 @@ func runCmd(c *cli.Context) error {
return err
}
runtime, err := getRuntime(c)
-
if err != nil {
return errors.Wrapf(err, "error creating libpod runtime")
}
+ defer runtime.Shutdown(false)
createConfig, err := parseCreateOpts(c, runtime)
if err != nil {
@@ -51,7 +51,6 @@ func runCmd(c *cli.Context) error {
if err != nil {
return err
}
- defer runtime.Shutdown(false)
logrus.Debug("spec is ", runtimeSpec)
if createImage.LocalName != "" {