Show HN: Self-hosted Docker image registry. One container, two simple accounts

github.com

35 points by dellarb 5 hours ago

I wanted somewhere to push my own Docker images and pull them from my other hosts. The registries I tried were either bare cli and complex config file driven or full fruit complex permission based systems.

Registreasy sits in the middle. Set two passwords in Docker Compose: one for the account that pushes images and one for the read-only account your other hosts use to pull them. You can also allow pulls without a password if that suits your setup.

aaronbrethorst 5 hours ago

You might say that you're keeping it <puts on sunglasses, pretends to be Ted Danson in The Good Place> Registreezy.

In all seriousness, though, this is cool. I've wanted something exactly like this for a while and I'm going to go poke at it.

  • Shadowmist 3 hours ago

    Oh, we’re in the bad place.

linsomniac 2 hours ago

This looks nice.

Another option is Zot: https://zotregistry.dev/v2.1.23/

We've been running it for ~4 months and it's worked great; it's a single executable and they give you a systemd unit file to kick it off.

  • vmt-man 1 hour ago

    Thanks, it's a more interesting project than the one OP posted. Golang is faster and more memory-efficient.

  • chaz6 35 minutes ago

    The provide installation instructions for bare-metal (using a binary) and kubernetes/helm. It would be nice to also see instructions for docker/podman compose.

Helmut10001 4 hours ago

I use Gitlab CE locally, which also comes with a Container Registry. However, even tuned down via parameters, a minimal Gitlab consumes at least 2-3 GB of memory these days, so having something more lightweight is really good. I transitioned all my CI&CD jobs to my internal network, behind VPN, and it makes maintaining and deploying websites really effortless and efficient, without the security implications of running Gitlab in the open.

  • duskwuff 3 hours ago

    Forgejo and Gitea can also host OCI registries, and are much lighter to run than Gitlab.

  • roygbiv2 1 hour ago

    I'm very surprised at the amount of resources gitlab uses, I'll admit I haven't done any tuning on it though.

  • philipp-gayret 1 hour ago

    Having hosted Gitlab for a large org, I can reveal Gitlab is mostly open source projects glued together with a Gitlab sticker on it. At the time I hosted it, the container registry was Harbor, from https://goharbor.io . I wouldn't call it lightweight personally, as it consists of 10+ of these applications.

import 3 hours ago

Very curious what makes this one different than zot and oci registry.

q2dg 2 hours ago

Having to run it via Docker Compose is a no-go for me: I use Podman

  • xx_ns 1 hour ago

    I don't see any indication that it requires compose. The (fairly simple) compose file seems to be provided for ease of use but nothing is seemingly stopping you from running it with podman.

    • justsomehnguy 1 hour ago

      Compose there is only to build the image from the Dockerfile. Guess GP is too opinionated.

  • seedie 1 hour ago

    Is there a reason why `podman compose` doesn't work? Are there functional differences?

yuzzuwo 49 minutes ago

does it clean up old tags