mirror of https://github.com/docker/docs.git
				
				
				
			Don't retry push on an unknown repository
If the remote registry responds with a NAME_UNKNOWN error, treat this as a fatal error and don't retry the push. Tested against an ECR registry. Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com> (cherry picked from commit a12ab28e0afb8dd0a05187989dd95c9b9ca3fd68) Signed-off-by: Tibor Vass <tibor@docker.com>
This commit is contained in:
		
							parent
							
								
									c0a787db2b
								
							
						
					
					
						commit
						72274de26e
					
				|  | @ -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: | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue