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.
Mostly because setting up users and cleaning up images required extensive command line - the https://hub.docker.com/_/registry is the exact server in here just packaged with nginx and some config to allow easier password setup and a basic UI for container management.
1) 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. This gets you one of those.
4) no web-UI (kind of, there is registry-ui, but it sucks)
5) 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
6) 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.
I think op is bothered because that just has CLI support. Nowadays everyone is trying to build their own vibe coding it. Which is cool, but shouldn't be shared publicly as a product
Fair call I should clarify I've not vibe coded a registry app - its docker registry and nginx under the hood with config and UI wrapper to make it easier to use.
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
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
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?
Yes 100%. It is just the https://hub.docker.com/_/registry combined with nginx and config/UI so 100% compatible with regular docker push pull like hub once you've done the local login.
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.
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.
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.
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.
Zot is great if you need the full features definitely recommend. But JSON based config and extensive user controls when I just needed a secure registry drove me to find this spot in the middle. This is up and running with users working in 60 seconds.
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.
Not automatically but if you visit the web interface you can log in as the push user and delete any tag/repo you like. Just make sure to schedule garbage collection in settings.
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.
1) 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. This gets you one of those.
4) no web-UI (kind of, there is registry-ui, but it sucks)
5) 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
6) 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.
Multi user and permissions go zot for sure - single user is what registreasy is 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...