this post was submitted on 21 Feb 2025
236 points (100.0% liked)

Selfhosted

46672 readers
328 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 2 years ago
MODERATORS
 

AFAIK every NAS just uses unauthenticated connections to pull containers, I'm not sure how many actually allow you to log in even (raising the limit to a whopping 40 per hour).

So hopefully systems like /r/unRAID handle the throttling gracefully when clicking "update all".

Anyone have ideas on how to set up a local docker hub proxy to keep the most common containers on-site instead of hitting docker hub every time?

all 30 comments
sorted by: hot top controversial new old
[–] warmaster@lemmy.world 85 points 3 months ago (1 children)

Fortunately linuxserver's main hosting is no longer dockerhub.

[–] TheHobbyist@lemmy.zip 16 points 3 months ago (1 children)

Would you be able to share more info? I remember reading their issues with docker, but I don't recall reading about whether or what they switched to. What is it now?

[–] narc0tic_bird@lemm.ee 50 points 3 months ago (1 children)

They run their own registry at lscr.io. You can essentially prefix all your existing linuxserver image names with lscr.io/ to pull them from there instead.

[–] erre@programming.dev 16 points 3 months ago

It's actually a redirect service around ghcr to provide them analytics. There's more info in their FAQ.

https://docs.linuxserver.io/FAQ/

[–] muntedcrocodile@lemm.ee 57 points 3 months ago (1 children)

How long since getting an oracle CEO did this take?

[–] scrubbles@poptalk.scrubbles.tech 38 points 3 months ago (1 children)

Did they really? Oh my god please tell me your joking, that a company as modern as docker got a freaking oracle CEO. They pulled a Jack Barker. Did he bring his conjoined triangles of success?

[–] mac@lemm.ee 10 points 3 months ago

A "jack barker" 🤣

[–] Shading7104@feddit.nl 35 points 3 months ago

Instead of using a sort of Docker Hub proxy, you can also use GitHub's repository or Quay. If the project allows it, you can easily switch to these alternatives. Alternatively, you can build the Docker image yourself from the source. It's usually not a difficult process, as most of it is automated. Or what I personally would probably do is just update the image a day later if I hit the limit.

[–] lambalicious@lemmy.sdf.org 29 points 3 months ago

Forgejo gives you a registry built-in.

Also is it just me or does the docker hub logo look like it's giving us the middle finger?

[–] PassingThrough@lemm.ee 26 points 3 months ago (2 children)

Huh. I was just considering establishing a caching registry for other reasons. Ferb, I know what we’re going to do today!

[–] Daughter3546@lemmy.world 4 points 3 months ago (1 children)

Do you have a good resource for how one can go about this?

[–] PassingThrough@lemm.ee 6 points 3 months ago (1 children)
[–] Daughter3546@lemmy.world 2 points 3 months ago

Much appreciated <3

[–] Uli@sopuli.xyz 1 points 3 months ago

Same here. I've been building a bootstrap script, and each time I test it, it tears down the whole cluster and starts from scratch, pulling all of the images again. Every time I hit the Docker pull limit after 10 - 12 hours of work, I treat that as my "that's enough work for today" signal. I'm going to need to set up a caching system ASAP or the hours I work on this project are about to suddenly get a lot shorter.

[–] possiblylinux127@lemmy.zip 21 points 3 months ago

Use a service that's not Docker hub

[–] Dunstabzugshaubitze@feddit.org 20 points 3 months ago (1 children)

https://distribution.github.io/distribution/

is an opensource implementation of a registry.

you could also self host something like gitlab, which bundles this or sonatype nexus which can serve as a repository for several kinds of artifacts including container images.

[–] PassingThrough@lemm.ee 9 points 3 months ago (3 children)

Gitea and therefore Forgejo also have container registry functionality, I use that for private builds.

[–] possiblylinux127@lemmy.zip 3 points 3 months ago

Codeberg as woodpecker CI

[–] macattack@lemmy.world 3 points 3 months ago

Jumping on the forgejo love train

[–] Dunstabzugshaubitze@feddit.org 2 points 3 months ago

oh, thats good to know, forgejo seems way nicer for self hosting than the limited gitlab open source core.

[–] hedgehog@ttrpg.network 3 points 3 months ago (1 children)

local docker hub proxy

Do you mean a Docker container registry? If so, here are a couple options:

[–] dangling_cat@lemmy.blahaj.zone 3 points 3 months ago (3 children)

Is there a project that acts like a registry? It can proxy the request with TTL, and you can push images to it too?

[–] scrubbles@poptalk.scrubbles.tech 9 points 3 months ago (1 children)

Almost all of them. Forgejo handles containers already for example

[–] beeng@discuss.tchncs.de 1 points 3 months ago

Pull through Cache / proxy is what you're looking for.

[–] heavydust@sh.itjust.works 6 points 3 months ago

Artifactory is mandatory in some industries because it will keep all the versions of the images forever so that you can build your projects reliably without an internet connction.

[–] renegadespork@lemmy.jelliefrontier.net 3 points 3 months ago (1 children)

I think most self-hosted Git+CI/CD platforms have container registry as a feature, but I'm not aware of a service that is just a standalone registry.

[–] tofuwabohu@slrpnk.net 4 points 3 months ago* (last edited 3 months ago)

It's easy to oversee because of the generic name, but this is pretty much that: https://hub.docker.com/_/registry

Edit: forgot there's jfrog artifactory as well

[–] Mubelotix@jlai.lu -1 points 3 months ago

If only they used a distributed protocol like ipfs, we wouldn't be in this situation