From 66fbc0c2a3e813359654f21433abf995b6687265 Mon Sep 17 00:00:00 2001 From: Antonio Murdaca Date: Sat, 23 Apr 2016 12:27:45 +0200 Subject: [PATCH] distribution: errors: do not retry on too many requests from registry Signed-off-by: Antonio Murdaca --- distribution/errors.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/distribution/errors.go b/distribution/errors.go index f7a9c62136..cd8dd590df 100644 --- a/distribution/errors.go +++ b/distribution/errors.go @@ -89,7 +89,7 @@ func retryOnError(err error) error { } case errcode.Error: switch v.Code { - case errcode.ErrorCodeUnauthorized, errcode.ErrorCodeUnsupported, errcode.ErrorCodeDenied: + case errcode.ErrorCodeUnauthorized, errcode.ErrorCodeUnsupported, errcode.ErrorCodeDenied, errcode.ErrorCodeTooManyRequests: return xfer.DoNotRetry{Err: err} } case *url.Error: