summaryrefslogtreecommitdiff
path: root/pkg/varlinkapi
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/varlinkapi')
-rw-r--r--pkg/varlinkapi/images.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkg/varlinkapi/images.go b/pkg/varlinkapi/images.go
index f1167c6e2..da19483b3 100644
--- a/pkg/varlinkapi/images.go
+++ b/pkg/varlinkapi/images.go
@@ -367,6 +367,12 @@ func (i *LibpodAPI) SearchImage(call iopodman.VarlinkCall, name string, limit in
for _, reg := range registries {
results, err := docker.SearchRegistry(getContext(), sc, reg, name, int(limit))
if err != nil {
+ // If we are searching multiple registries, don't make something like an
+ // auth error fatal. Unfortunately we cannot differentiate between auth
+ // errors and other possibles errors
+ if len(registries) > 1 {
+ continue
+ }
return call.ReplyErrorOccurred(err.Error())
}
for _, result := range results {