From ddaa1acdb95000d0c07df090db314565107c7ba3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=ED=95=98=EA=B4=91=EC=9D=BC/TC=5FCore=20Engineering?= Date: Thu, 14 May 2020 16:52:13 +0900 Subject: [PATCH] Add limit when calling v1/_catalog --- registry/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/registry/client.go b/registry/client.go index eba7049..2e9842e 100644 --- a/registry/client.go +++ b/registry/client.go @@ -178,7 +178,7 @@ func (c *Client) Repositories(useCache bool) map[string][]string { linkRegexp := regexp.MustCompile("^<(.*?)>;.*$") scope := "registry:catalog:*" - uri := "/v2/_catalog" + uri := "/v2/_catalog?n=1000" c.repos = map[string][]string{} for { data, resp := c.callRegistry(uri, scope, "manifest.v2")