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… Upstream-commit: 9b307fe369884220fdbd3540562ede9050754e6b Component: engine
This commit is contained in:
@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user