49 points · by dellarb · 1d ago · 32 comments
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.
You could easily run this without nginx then. I built this based on years of headaches running distribution at Docker Hub. I'm slowly working to apply some of the performance and configuration changes back to upstream (~50% faster, 90% less allocations, 100% spec compliant) but it's going to take some time.
$ docker run -d -p 5000:5000 --restart always --name registry registry:31) tough to configure and make user accounts on, never mind using centralized auth for a large team
2) doesn't support security policies or fine grained access control (no-one outside core IT has access to models of type blah ...)
3) you want 3 things: docker images, VM images (including proprietary software images) and linux package mirrors (that ideally auto-update), python/ruby/even perl package mirrors. Hell now even mirrors of github projects.
4) you want it multi-tenant. So the marketing department can have one set of images, and the telecom department can have another, and IT ... you see where this is going
5) you want this as part of a cluster so everything is very fast, always, everywhere
Now, there is no software that actually has these features, but Nexus and Artifactory have built up a following. They suck, frankly, and don't have these features you want.
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.
Only note is docker likes https so if not putting behind a https reverse proxy you will need to set up per insecure-registries in your client.
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.
For a simple homelab where I just want to push and pull Docker images, I wanted something quicker to set up and easier to manage. One container, two accounts configured through environment variables, and a simple web interface.
That's really the use case Registreasy is designed for.
podman run -d \ --name registreasy \ -p 5000:5000 \ -e PUSH_PASSWORD="your-push-password" \ -e PULL_PASSWORD="your-pull-password" \ -v ./data:/data:Z \ ghcr.io/dellarb/registreasy:latest
https://docs.podman.io/en/latest/markdown/podman-compose.1.h...