diff --git a/registry/storage/catalog.go b/registry/storage/catalog.go index ebf80e05b..a903fb393 100644 --- a/registry/storage/catalog.go +++ b/registry/storage/catalog.go @@ -143,8 +143,8 @@ func handleRepository(fileInfo driver.FileInfo, root, last string, fn func(repoP repo := filePath[len(root)+1:] _, file := path.Split(repo) - if file == "_layers" { - repo = strings.TrimSuffix(repo, "/_layers") + if file == "_manifests" { + repo = strings.TrimSuffix(repo, "/_manifests") if lessPath(last, repo) { if err := fn(repo); err != nil { return err