Update module github.com/containers/storage to v1.46.1

Signed-off-by: Renovate Bot <bot@renovateapp.com>
This commit is contained in:
renovate[bot]
2023-04-10 22:42:41 +00:00
committed by GitHub
parent 1aa6371db4
commit 66157589c5
25 changed files with 509 additions and 337 deletions

View File

@@ -666,7 +666,7 @@ func (r *containerStore) create(id string, names []string, image, layer string,
if _, idInUse := r.byid[id]; idInUse {
return nil, ErrDuplicateID
}
names = dedupeNames(names)
names = dedupeStrings(names)
for _, name := range names {
if _, nameInUse := r.byname[name]; nameInUse {
return nil, fmt.Errorf("the container name %q is already in use by %s. You have to remove that container to be able to reuse that name: %w", name, r.byname[name].ID, ErrDuplicateName)