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

Ability to mirror non dockerhub repos #75

Open
slyall opened this issue Jul 9, 2021 · 1 comment
Open

Ability to mirror non dockerhub repos #75

slyall opened this issue Jul 9, 2021 · 1 comment

Comments

@slyall
Copy link

slyall commented Jul 9, 2021

I was attempting to mirror quay.io/coreos/kube-state-metrics but it failed with:

time="2021-07-09T04:11:44Z" level=warning msg="Get https://registry.hub.docker.com/v2/repositories/quay.io/coreos/kube-state-metrics/tags/?page_size=2048 [registry.hub.docker.com] failed with 404,
retrying" full_repo=quay.io/coreos/kube-state-metrics

It appears that line 342 of mirror.go just hardcodes registry.hub.docker.com in the url to mirror from.

Would it be possible to check if the start of the location was a domain and mirror from there instead of docker.com?

@marshallford
Copy link

In a similar vein, support for the new-ish GitHub Container Registry would be helpful.

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