diff --git a/src/common/utils/registry/registry.go b/src/common/utils/registry/registry.go index 5d080b3ba..99fdd4f1d 100644 --- a/src/common/utils/registry/registry.go +++ b/src/common/utils/registry/registry.go @@ -20,7 +20,7 @@ import ( "net/http" "net/url" "strings" - "time" + // "time" "github.com/vmware/harbor/src/common/utils" registry_error "github.com/vmware/harbor/src/common/utils/registry/error" @@ -77,7 +77,9 @@ func NewRegistryWithModifiers(endpoint string, insecure bool, modifiers ...Modif return NewRegistry(endpoint, &http.Client{ Transport: transport, - Timeout: 30 * time.Second, + // If there are hunderds of repositories in docker registry, + // timeout option will abort HTTP request on getting catalog + // Timeout: 30 * time.Second, }) }