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 }