mirror of
https://github.com/docker/cli.git
synced 2026-01-22 03:22:01 +03:00
Merge pull request #24520 from aaronlehmann/no-retry-on-unknown-repository
Don't retry push on an unknown repository Upstream-commit: 10d5d08c48d6de61213d7ac5167e4d3589d44df8 Component: engine
This commit is contained in:
@@ -89,7 +89,7 @@ func retryOnError(err error) error {
|
||||
}
|
||||
case errcode.Error:
|
||||
switch v.Code {
|
||||
case errcode.ErrorCodeUnauthorized, errcode.ErrorCodeUnsupported, errcode.ErrorCodeDenied, errcode.ErrorCodeTooManyRequests:
|
||||
case errcode.ErrorCodeUnauthorized, errcode.ErrorCodeUnsupported, errcode.ErrorCodeDenied, errcode.ErrorCodeTooManyRequests, v2.ErrorCodeNameUnknown:
|
||||
return xfer.DoNotRetry{Err: err}
|
||||
}
|
||||
case *url.Error:
|
||||
|
||||
Reference in New Issue
Block a user