Merge pull request #895 from baude/kpod_rmi_name
kpod rmi by ID untagged: %name incorrect
This commit is contained in:
commit
30d163900f
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue