Merge pull request #17503 from mikebrow/fix-for-rmi-id-old-local-repositories

putting in support for rmi id for legacy docker.io/name images in loc…
This commit is contained in:
Alexander Morozov 2015-11-13 16:22:30 -08:00
commit 9b307fe369

View file

@ -203,8 +203,6 @@ func (store *TagStore) Delete(repoName, ref string) (bool, error) {
return false, err
}
repoName = registry.NormalizeLocalName(repoName)
if ref == "" {
// Delete the whole repository.
delete(store.Repositories, repoName)
@ -212,6 +210,7 @@ func (store *TagStore) Delete(repoName, ref string) (bool, error) {
}
repoRefs, exists := store.Repositories[repoName]
if !exists {
return false, fmt.Errorf("No such repository: %s", repoName)
}