summaryrefslogtreecommitdiff
path: root/cmd/podman/rm.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/podman/rm.go')
-rw-r--r--cmd/podman/rm.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/podman/rm.go b/cmd/podman/rm.go
index d6af6db07..9fc65cb4d 100644
--- a/cmd/podman/rm.go
+++ b/cmd/podman/rm.go
@@ -37,6 +37,7 @@ var (
// saveCmd saves the image to either docker-archive or oci
func rmCmd(c *cli.Context) error {
+ ctx := getContext()
if err := validateFlags(c, rmFlags); err != nil {
return err
}
@@ -81,7 +82,7 @@ func rmCmd(c *cli.Context) error {
}
}
for _, container := range delContainers {
- err = runtime.RemoveContainer(container, c.Bool("force"))
+ err = runtime.RemoveContainer(ctx, container, c.Bool("force"))
if err != nil {
if lastError != nil {
fmt.Fprintln(os.Stderr, lastError)