From f0b94a41e89cc8f8c5a91c9dc40c3efccf26570d Mon Sep 17 00:00:00 2001 From: baude Date: Mon, 11 Sep 2017 16:52:57 -0500 Subject: [PATCH] cmd/kpod/rmi.go: Fix deletion by ID When deleting by ID, kpod rmi was only "untagging" the image and not actually removing it. Signed-off-by: baude --- cmd/kpod/rmi.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/kpod/rmi.go b/cmd/kpod/rmi.go index 2e83ee8b..ba2b1ea0 100644 --- a/cmd/kpod/rmi.go +++ b/cmd/kpod/rmi.go @@ -79,10 +79,10 @@ func rmiCmd(c *cli.Context) error { if err2 != nil { return err } - fmt.Printf("untagged: %s", name) + fmt.Printf("untagged: %s\n", name) } - if len(image.Names) > 0 { + if len(image.Names) > 1 { continue } id, err := images.RemoveImage(image, store)