Show HN: Self-hosted Docker image registry. One container, two simple accounts
- github.com
- By dellarb
- 51 points
- 33 comments
Discussion
Source linksShowing up to 12 top-level comments in Hacker News order.
-
If you want something easier to build on, I've built a series of OCI related libraries here: https://github.com/ohseeeye/oci with some examples of how to build a standalone registry here: https://github.com/ohseeeye/registry. 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.
-
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
-
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
-
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.
-
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?
-
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
-
There's a lot of options in this field, why a new one? what makes dellarb different?
-
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.
-
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.
-
Very curious what makes this one different than zot and oci registry.
-
Having to run it via Docker Compose is a no-go for me: I use Podman
-
does it clean up old tags