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:
commit
9b307fe369
1 changed files with 1 additions and 2 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue