Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker hub image pull rate limit. #2268

Closed
saireddyzepto opened this issue Jan 23, 2025 · 1 comment
Closed

Docker hub image pull rate limit. #2268

saireddyzepto opened this issue Jan 23, 2025 · 1 comment

Comments

@saireddyzepto
Copy link

How to use self hosted dockerhub mirror the this github action.
Is there any way to mention my self hosted dockerhub image company.com/dockehub/mikefarah/yq:4-githubaction
Here this image company.com/dockehub/mikefarah/yq:4-githubaction is copy of mikefarah/yq:4-githubaction can this be achieved ?

@younsl
Copy link

younsl commented Feb 27, 2025

In GitHub Enterprise Server and GitHub self-hosted runners environment, you can resolve this issue as follows:

I solved dockerhub rate limit issue by setting up a public mirror ECR and changing the image reference in the action. This approach doesn't require container registry login since it runs within the action itself.

  1. Mirror source container imagemikefarah/yq:4-githubaction by ECR Pull Through Cache feature
  2. Change image value reference in the action to use this public ECR address.
# yq/action.yml
runs:
  # To avoid docker rate limit, change my public ECR
  using: 'docker'
  image: 'docker://<YOUR_PUBLIC-MIRRORED.CONTAINER_REGISTRY.COM>/github-actions/yq:4-githubaction'
  args:
    - ${{ inputs.cmd }}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants