logoalt Hacker News

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

23 points • by dellarb • today at 4:53 AM • 15 comments • view on HN

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.


Comments

modinfo • today at 7:07 AM

I like your project, simple docker image and we have working Docker registry, Thank you for you hard work! I also build my own registry for npm packages and cargo crates: https://github.com/skorotkiewicz/registry

aaronbrethorst • today at 5:35 AM

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.

➕ show 1 reply
Helmut10001 • today at 6:09 AM

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.

➕ show 3 replies
q2dg • today at 8:16 AM

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

➕ show 3 replies
linsomniac • today at 7:43 AM

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.

➕ show 1 reply
import • today at 6:59 AM

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

ibuildinpublic • today at 9:14 AM

[dead]

oniconnect • today at 5:44 AM

[dead]

cblacklabel • today at 7:56 AM

[dead]