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, 3 insertions, 0 deletions
diff --git a/cmd/kpod/run.go b/cmd/kpod/run.go
index b79ba5121..ec68d8b97 100644
--- a/cmd/kpod/run.go
+++ b/cmd/kpod/run.go
@@ -136,5 +136,8 @@ func runCmd(c *cli.Context) error {
fmt.Printf("%s\n", ctr.ID())
}
wg.Wait()
+ if createConfig.rm {
+ return runtime.RemoveContainer(ctr, true)
+ }
return nil
}