News for hackers. Stuff that matters.
Re:Docker Hub Is Down by __turbobrew__ on Wednesday September 24, 2025 @08:57PM (#45367980)
Anyone have recommendations for an image cache? Native kubernetes a plus.

What would be really nice is a system with mutating admission webhooks for pods which kicks off a job to mirror the image to a local registry and then replaces the image reference with the mirrored location.

Re:Docker Hub Is Down by edoceo on Wednesday September 24, 2025 @10:51PM (#45368769)
We do a local (well, internal) mirror for "all" these things. So, we're basically never stuck. It mirrors our CPAN, NPM, Composer, Docker and other of these web-repos. Helps on the CI tooling as well.
Re:Docker Hub Is Down by baq on Thursday September 25, 2025 @12:57AM (#45369400)
This is the way. At some point it’s way too expensive for a single repo in your supply chain to go down or even pull a package.
Re:Docker Hub Is Down by goku12 on Thursday September 25, 2025 @09:32AM (#45372440)
What server do you use?
Re:Docker Hub Is Down by edoceo on Thursday September 25, 2025 @08:54PM (#45381263)
Some hacked together homemade jank. I have a dream of refining and releasing.
Re:Docker Hub Is Down by goku12 on Friday September 26, 2025 @04:05AM (#45383996)
I haven't seen anything like it, except as part of Gitlab perhaps. But I'm sure that it would have a lot of demand and has the potential to become a popular project. Good luck!
Re:Docker Hub Is Down by NickHirras on Wednesday September 24, 2025 @11:10PM (#45368882)
I've been using Amazon ECR as an alternative source.

https://gallery.ecr.aws/

Re:Docker Hub Is Down by da768 on Wednesday September 24, 2025 @09:55PM (#45368437)
Not Google Artifact Registry... Our Docker Hub pull-through mirror went down with the Docker Hub outage. Images were still there but all image tags were gone
Re:Docker Hub Is Down by gjvr on Sunday September 28, 2025 @11:25AM (#45405032)
Thanks for sharing. Good to know. I Was considering using it for that purpose.
Re:Docker Hub Is Down by vitaliyf on Wednesday September 24, 2025 @11:17PM (#45368919)
Re:Docker Hub Is Down by __turbobrew__ on Thursday September 25, 2025 @01:24AM (#45369557)
That looks pretty close to what I want. Thanks!
Re:Docker Hub Is Down by phillebaba on Friday September 26, 2025 @04:44AM (#45384254)
I initially built Spegel to deal with a series of GHCR outages along with rate limit changes in Docker Hub. I am a bit biased but it is a no brainier to run Spegel to mitigate these types of issues.
Re:Docker Hub Is Down by __turbobrew__ on Friday September 26, 2025 @12:26PM (#45388279)
Thank you. Question, how large of clusters have you deployed spegel to? I run clusters which are well beyond the defined k8s limits and sometimes when we put stuff in there it blows up as it wasn’t ever tested at those scales (for example Cilium) https://kubernetes.io/docs/setup/best-practices/cluster-larg...
Re:Docker Hub Is Down by andrewstuart2 on Wednesday September 24, 2025 @09:09PM (#45368092)
CNCF has harbor [0], which I use at home and have deployed in a few clusters at work, and it works well as a pull through cache. In /etc/containers/registries.conf it's just another line below any registry you want mirrored.

    [[registry]]
    location = "docker.io"
    [[registry.mirror]]
    location = "core.yourharbor.example.com/hub"
Where hub is the name of the proxy you configured for, in this case, docker.io. It's not quite what you're asking for but it can definitely be transparent to users. I think the bonus is that if you look at a podspec it's obvious where the image originates and you can pull it yourself on your machine, versus if you've mutated the podspec, you have to rely on convention.

[0] https://goharbor.io/

Re:Docker Hub Is Down by alias_neo on Thursday September 25, 2025 @04:57AM (#45370683)
I would add, for anyone not familiar with it, that this (and more advanced mirroring, etc) is just as easily done from the really nice Web UI (if that's your cup of tea).
Re:Docker Hub Is Down by andrewstuart2 on Thursday September 25, 2025 @11:15AM (#45373716)
Yeah, to clarify, I had to first set up /hub as a caching proxy using the UI. Then the above configuration change was what I needed on my nodes in order to transparently use the proxy without changing podspecs.
Re:Docker Hub Is Down by esseph on Thursday September 25, 2025 @10:17AM (#45372891)
Seconding harbor
Re:Docker Hub Is Down by VonGuard on Thursday September 25, 2025 @12:26AM (#45369267)
Quay.io
Re:Docker Hub Is Down by hoherd on Thursday September 25, 2025 @11:41AM (#45374156)
Quay.io goes down way too frequently to be a solution to Docker Hub being down.
Re:Docker Hub Is Down by tfolbrecht on Thursday September 25, 2025 @12:46AM (#45369359)
I usually do upstream image mirroring as part of CI. Registries are built into GitLab, AWS (ECR), GitHub, etc
Re:Docker Hub Is Down by issei on Thursday September 25, 2025 @02:07AM (#45369738)
I've been using https://github.com/enix/kube-image-keeper on some of my clusters - it is a local docker registry running on cluster, with a proxy and mutation webhooks. I also evaluated spegel, but currently it isn't possible to setup on GKE
Re:Docker Hub Is Down by lars_francke on Thursday September 25, 2025 @04:28AM (#45370510)
I'm using a different approach for local testing where I don't want to redownload images over and over: https://github.com/stackabletech/k8s-local-dev

Basically it's a k3s configured to use a local mirror and that local mirror is running the Zot registry (https://zotregistry.dev/v2.1.8/). It is configured to automatically expired old images so my local hard drive isn't filled up).

Re:Docker Hub Is Down by alias_neo on Thursday September 25, 2025 @04:54AM (#45370670)
Depending on what other (additional) features you're willing to accept, the GoHarbor[0] registry supports pull-through as well as mirroring and other features, it's a nice registry that also supports other OCI stuff like Helm charts, and does vulnerability scanning with "Interrogation Services" like Trivy.

I've been using it at home and work for a few years now, might be a bit overkill if you just want a simple registry, but is a really nice tool for anyone who can benefit from the other features.

[0] https://goharbor.io/

Re:Docker Hub Is Down by philipallstar on Thursday September 25, 2025 @09:00AM (#45372186)
You can use Artifactory as a "front" for a variety of registries, including Docker, so it'll pull once and then use its cached image.