mirror of
https://github.com/portainer/portainer.git
synced 2025-07-25 00:09:40 +02:00
Fix dockerhub pro account rate-limit issue (#5352)
This commit is contained in:
parent
c943ac498f
commit
cee7ac26e9
2 changed files with 11 additions and 1 deletions
|
@ -32,7 +32,7 @@ export default class porImageRegistryContainerController {
|
|||
|
||||
try {
|
||||
this.pullRateLimits = await this.DockerHubService.checkRateLimits(this.endpoint, this.registryId || 0);
|
||||
this.setValidity(this.pullRateLimits.remaining >= 0);
|
||||
this.setValidity(!this.pullRateLimits.limit || (this.pullRateLimits.limit && this.pullRateLimits.remaining >= 0));
|
||||
} catch (e) {
|
||||
// eslint-disable-next-line no-console
|
||||
console.error('Failed loading DockerHub pull rate limits', e);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue