‹ Post details

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

  • github.com
  • By dellarb
  • 51 points
  • 33 comments

Discussion

Source links

Showing up to 12 top-level comments in Hacker News order.

  1. jeffcarter
    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.
  2. meander_water
    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
  3. modinfo
    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
  4. aaronbrethorst
    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.
  5. vasiliyasp
    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?
  6. jamesmstone
    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
  7. firezenk
    There's a lot of options in this field, why a new one? what makes dellarb different?
  8. linsomniac
    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.
  9. Helmut10001
    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.
  10. import
    Very curious what makes this one different than zot and oci registry.
  11. q2dg
    Having to run it via Docker Compose is a no-go for me: I use Podman
  12. yuzzuwo
    does it clean up old tags

Source links