summaryrefslogtreecommitdiff
path: root/libpod/runtime_img.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-05-12 19:12:24 +0200
committerGitHub <noreply@github.com>2019-05-12 19:12:24 +0200
commitd2571c7fd49d22e822a6f3b3796488218c9f9e46 (patch)
tree97480044298e621107090f1c5f11f4df9d433d76 /libpod/runtime_img.go
parent9ae32214f466e2150b7bc383585f60694b53c4b3 (diff)
parentc9c00ecd532fea4722b020f318daa1e34bc46fd0 (diff)
downloadpodman-d2571c7fd49d22e822a6f3b3796488218c9f9e46.tar.gz
podman-d2571c7fd49d22e822a6f3b3796488218c9f9e46.tar.bz2
podman-d2571c7fd49d22e822a6f3b3796488218c9f9e46.zip
Merge pull request #3105 from mheon/use_ctr_remove_funcs
Use standard remove functions for removing pod ctrs
Diffstat (limited to 'libpod/runtime_img.go')
-rw-r--r--libpod/runtime_img.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/runtime_img.go b/libpod/runtime_img.go
index 5e9f65acc..7cc7de270 100644
--- a/libpod/runtime_img.go
+++ b/libpod/runtime_img.go
@@ -48,7 +48,7 @@ func (r *Runtime) RemoveImage(ctx context.Context, img *image.Image, force bool)
if len(imageCtrs) > 0 && len(img.Names()) <= 1 {
if force {
for _, ctr := range imageCtrs {
- if err := r.removeContainer(ctx, ctr, true, false); err != nil {
+ if err := r.removeContainer(ctx, ctr, true, false, false); err != nil {
return "", errors.Wrapf(err, "error removing image %s: container %s using image could not be removed", img.ID(), ctr.ID())
}
}