mirror of
https://github.com/docker/cli.git
synced 2026-01-18 08:21:31 +03:00
putting in support for rmi id for legacy docker.io/name images in local repositories
Signed-off-by: Mike Brown <brownwm@us.ibm.com> Upstream-commit: b1da9fcc841a175776697ad64d2c6b22f27d097d Component: engine
This commit is contained in:
@@ -253,8 +253,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)
|
||||
@@ -262,6 +260,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