From e27230bbaf60ba98ec89cfc83bec67a022b19922 Mon Sep 17 00:00:00 2001 From: baude Date: Tue, 12 Sep 2017 13:30:36 -0500 Subject: [PATCH] kpod rmi by ID untagged: %name incorrect As described in https://github.com/kubernetes-incubator/cri-o/issues/888, when deleting by ID, the name being returned for the untagged message was "". Signed-off-by: baude --- libpod/images/rmi.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libpod/images/rmi.go b/libpod/images/rmi.go index b3b0459e..8593a868 100644 --- a/libpod/images/rmi.go +++ b/libpod/images/rmi.go @@ -11,7 +11,7 @@ func UntagImage(store storage.Store, image *storage.Image, imgArg string) (strin newNames := []string{} removedName := "" for _, name := range image.Names { - if MatchesReference(name, imgArg) { + if MatchesReference(name, imgArg) || MatchesID(imgArg, image.ID) { removedName = name continue }