this post was submitted on 11 Oct 2024
28 points (93.8% liked)

Selfhosted

50324 readers
315 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
 

I'd like to host my own container images centrally in my network so that I can both cache the images (if dockerhub or similar goes down) but also host my own images that I don't want public. Anyone doing this?

top 16 comments
sorted by: hot top controversial new old
[–] infeeeee@lemm.ee 19 points 10 months ago* (last edited 10 months ago) (1 children)

If you don't need fancy gui and authentication, registry is easy to set up and works really well: https://hub.docker.com/_/registry

[–] lemmyng@lemmy.ca 7 points 10 months ago

Does registry still have that problem of making it practically impossible to do garbage collection on old images?

[–] DasFaultier@sh.itjust.works 18 points 10 months ago (1 children)

Try goharbor.io, that's what I use. I think (but I'm not sure) that Forgejo/Gitea and Gitlab can also cache images.

[–] magikmw@lemm.ee 4 points 10 months ago

Can confirm, gitlab has a container registry built in, at least in the omnibus package installation.

[–] zelifcam@lemmy.world 15 points 10 months ago

Gittea and Forgejo both have self hosted container registries.

[–] femtech@midwest.social 7 points 10 months ago
[–] borax451@lemmy.world 6 points 10 months ago

zot is the newer kid on the block, and a single binary single config file sort of affair.

https://zotregistry.dev

[–] seang96@spgrn.com 5 points 10 months ago* (last edited 10 months ago)

Forgejo supports a ton of repos including docker / OCI images.

[–] ogarcia@lemmy.world 5 points 10 months ago (2 children)

Apart from the registries you have in GitLab and GitHub if you are looking for something more generic like Docker Hub you have Quay (from RedHat). It works very well and has a pretty nice interface (especially the new one that is in testing).

[–] philthi@lemmy.world 4 points 10 months ago

I moved to quay.io years ago and have never looked back.

[–] fluckx@lemmy.world 2 points 10 months ago* (last edited 10 months ago) (1 children)

I looked into that at one point, but 15$/month is quite steep just for that ( imo )

[–] ogarcia@lemmy.world 2 points 10 months ago

Well, if you want private images it is normal that they charge you for it. What I advise you to do is to make the images public and mount the private part as a volume. This way you can upload the images wherever you want without worrying.

Another option if you want the resulting image to have something private is to create as much as you can in a public image and have a script that adds the private part as the last layer.

[–] arcayne@lemmy.today 3 points 10 months ago

https://pulpproject.org/

Does docker, pypi, apt, ansible galaxy, etc. I use it at work as part of our undercloud for OpenStack. It's the go-to for StackHPC, too.

[–] kolorafa@lemmy.world 3 points 10 months ago

You can use (self hosted) gitlab as a registry storage. We do that locally so we have both code, pipeline and containers in the same place.

[–] johntash@eviltoast.org 3 points 10 months ago

I use the Nexus free version. You can cache docker registries and other repos like apt/yum/pypi/etc.

It works pretty well, but could be overkill compared to some of the other options.

[–] beerclue@lemmy.world 2 points 10 months ago

We're using a self hosted Nexus instance at work. You probably don't need all the features it offers, but it does its job really well. For free, too.