Hacker News new | past | comments | ask | show | jobs | submit login
Self hosted Docker registry with auto image push on push to main (aawadia.dev)
55 points by asadawadia on Nov 7, 2022 | hide | past | favorite | 13 comments



Whilst I self host many things, if you are using GitHub actions then they provide a free Docker registry I have never had any issues with.

https://docs.github.com/en/packages/working-with-a-github-pa...


Only 500MB of storage [same as DigitalOcean's free repo] - which isn't enough


If you're self hosting, why would you use github?


Not OP but self hosting isn’t all or nothing. I self host a few things but wouldn’t currently switch from GitHub because: it’s pretty cheap, it works well, its popularity adds some useful network effects, and Actions is a nice CI solution for some projects. If I were to self host a git remote I’d probably end up still using GitHub for certain projects (especially OSS). I’d rather have all my code projects in one place for simplicity. Can’t see any strong arguments for self hosting GitHub currently, other than to satisfy a perfectionist urge to get to 100% self hosting.


Agreed. Same here. The post was about self-hosting though.


This project sounds awesome, maybe dokku[0] and caprover[1] might serve as inspiration for next steps.

[0]: https://dokku.com/

[1]: https://caprover.com/


Coolify[0] is another good option.

[0]: https://coolify.io/


Instead of ngnix you could use caddy as a docker container too.


I use self hosted Gitlab, which provides docker registry and much more. I recommend checking it out.


I would agree on using caddy (or traefik) as a web-server, because of a built-in ACME support.

The one thing what doesn't get covered on this topic is how to make multiple users. For what it worth I never needed to mess with htpasswd in my life ever.

Overall it is a good recipe on how to make you own registry, kudos.


Beautiful blog post. Very clean technically, verbally, and visually.


Thank you :)


I for one would love to see self hosted Docker become the norm. 1:1 and 1:many Docker hosting between the masses.

Decouple IT from corporate monoliths.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: