Show HN: Self-hosted Docker image registry. One container, two simple accounts
github.comI 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.
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.
Oh, we’re in the bad place.
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
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.
Thanks, it's a more interesting project than the one OP posted. Golang is faster and more memory-efficient.
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.
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.
Forgejo and Gitea can also host OCI registries, and are much lighter to run than Gitlab.
I'm very surprised at the amount of resources gitlab uses, I'll admit I haven't done any tuning on it though.
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.
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
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.
Compose there is only to build the image from the Dockerfile. Guess GP is too opinionated.
Then don't run it with Docker Compose.
https://docs.podman.io/en/latest/markdown/podman-compose.1.h...
Is there a reason why `podman compose` doesn't work? Are there functional differences?
does it clean up old tags