logoalt Hacker News

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

42 points • by dellarb • today at 4:53 AM • 23 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

meander_water • today at 1:03 PM

Why not just use the official docker registry image? -https://hub.docker.com/_/registry

  $ docker run -d -p 5000:5000 --restart always --name registry registry:3
jamesmstone • today at 10:44 AM

I have always thought it should be possible to put an OCI image on a static webhost, but never looked in to it. ie if you put the right files on gihub pages, s3 or similar you could in theory `docker pull` from it. So I am a fan of simple OCI image registry options

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
vasiliyasp • today at 11:56 AM

Am I right that this is a normal Docker registry from the client’s point of view, right? So after docker login registry:5000 -u push I can push/pull exactly like with Docker Hub, and the only special part is the two-account setup on the server side?

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

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
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 2 replies
import • today at 6:59 AM

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

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
yuzzuwo • today at 9:49 AM

does it clean up old tags

yurigokoryan • today at 1:10 PM

[dead]

nexkit • today at 12:00 PM

[dead]

bluescorpio • today at 11:51 AM

[dead]

oniconnect • today at 5:44 AM

[dead]

beyondtoday1 • today at 11:53 AM

[dead]

ibuildinpublic • today at 9:14 AM

[dead]

cblacklabel • today at 7:56 AM

[dead]

ordesign • today at 9:43 AM

[dead]

kernel_coffee • today at 12:14 PM

[flagged]