Merge pull request #895 from baude/kpod_rmi_name

kpod rmi by ID untagged: %name incorrect
This commit is contained in:
Daniel J Walsh 2017-10-05 08:28:04 -04:00 committed by GitHub
commit 30d163900f

View file

@ -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
}