r/devops • • Sep 17 '26

Discussion Looking for a docker registery

My company serving 5 apps to the many customers. Managing deployment and new releases are the biggest problem. Because all the time we are copying the build files and pasting to the target server by connecting with rdp. I Want to use dockerfiles for serving and want to keep these images on our server with a registery.

ACR (azure container registery) and the other ones are still the options but i want to host in my server like i did for npm libraries with verdaccio.

And i would like to get your opinnions about my deployment plan. Our customers servers are all windows. We have some windows-only apps. But for the ones which i plan to serve with docker file is better to run with docker. So i plan to use WSL and pull the images from the registery that i am planning to create.

Wdyt?

25 Upvotes

56 comments sorted by

31

u/LeMochileiro Sep 17 '26

i want to host in my server like i did for npm libraries with verdaccio.

For registry self-hosting, I use Harbor. My priority is always to use providers like Docker Hub, GHCR, and ECR. But if for some reason (usually involving firewall configuration and security policies) I can't connect to those providers to pull images; I use Harbor. It works very well for me and doesn't consume much CPU or memory.

Setting it up via Helm Chat for K8s is quite easy. I don't know how it is done in other ways.

15

u/Sufficient_Job7779 Sep 17 '26

We selfhost gitlab for code and use it's docker registry

1

u/LoquatDizzy3863 Sep 27 '26

we did that too, but honestly the registry ended up being one more thing to babysit. Fine when you need it, but I wouldn't self-host one unless there's a real reason.

1

u/Sufficient_Job7779 Sep 27 '26

What was the issue with it? Never had any. Hosting around 50 different apps/images. With proper retention it should be all good.

10

u/foofoo300 Sep 17 '26

we use zot

22

u/ID10T-3RR0R Sep 17 '26

Dockerhub, nexus, artifactory?

3

u/mantrain42 Sep 17 '26

Artifact keeper?

1

u/NothingDogg Sep 18 '26

I've been looking at this - are you using it? Would you recommend it?

1

u/mantrain42 Sep 18 '26

Unfortunately, I have only gotten to setting up a test instance. It seems good, but I havent been able to put it into production yet. Will do soon though, so ask me again later :D

1

u/256BitChris Sep 17 '26

FD: I run CloudRepo, which does support Docker images.

However, I usually try to point people to the registry that is closest to where they're going to be deploying: in your case, if you're deploying to Azure servers, Azure Container Registry should do the trick - and depending on how you set it up, should be a minimal cost, especially if you can keep your egress down and run in the same region as your clients.

ECR is the equivalent for AWS - but one gotcha that I've been stung by there is that you need to add a VPC endpoint to ECR in order to avoid public internet egress fees - doesn't cost that much but can save you a ton - Azure probably has something similar.

These are usually consumption/usage based pricing - vs some of the enterprise solutions mentioned above which try to wrangle you into per-seat enterprise deals.

If you're going to roll your own, you could also look at CloudFlare with their R2 storage and 0 egress fees - if you're doing any public distributions you can leverage their CDN as well which makes things even better and the cost is basically 0. Super easy to setup as well.

Good luck, and you can always DM me if you have any implementation questions - always happy to help in this domain!

6

u/QuailAndWasabi Sep 17 '26

First ask yourself why you want to self host. ACR (and probably most similar options) can be completely locked down to private VNets and accessed through privatelink for example.

It's doubtful your private servers would be more secure than Azure/ACR if configured correctly. It's also very cheap, costs basically nothing with so few images, and administration is limited after initial setup because you dont have to think about patching and stuff yourself.

1

u/21shadesofsavage Sep 18 '26

agreed. i'm all for self hosting but what's the contingency plan here if your registry goes down. are there SLAs or anything with these customers? what's the operational overhead for locked down permissions control, oidc/ldap sync, etc. i rather pay for the peace of mind and high availability of the cloud provider's container registry service unless there's a particular business/security need for self hosted

Managing deployment and new releases are the biggest problem. Because all the time we are copying the build files and pasting to the target server by connecting with rdp.

idk anything about windows but can't you automate this? sftp or whatever the azure equivalent of s3 bucket replication is

4

u/taleodor Sep 17 '26

We use zot by default - it's the easiest option, we recently also load-tested our tool that uses OCI as primary storage via Oras. The writeup has performance comparison between registries - https://rearmhq.com/blog/2026-09-02-load-testing-rearm-sbom-ingestion/

4

u/IrrerPolterer Sep 17 '26

Registry is the simplest option if you just need a lightweight image registry on local/private infrastructure. Alternatively, if your deployments run in AWS/GCloud/Azure, then just using their respective registry products is the easiest approach. 

1

u/pausethelogic Sep 17 '26

Why would you want to host a docker registry on your own server?

Where are your customers apps hosted? Do they own the infrastructure or are they in infrastructure you manage and have access to?

If they’re in Azure, use ACR. If they’re in AWS, use ECR. Don’t make it more complicated than it needs to be

Whatever you go with, do what you can to not RDP into servers anymore. That’s a huge pain and deployments should be handled by an actual pipeline

-1

u/Plastic-Switch1992 Sep 17 '26

Honestly, I prefer hosting it on our own server because it would be both more secure and cost-effective. Each customer has their own Windows server hosted by a different provider, so we cannot rely on or become tied to any single cloud provider.

I have already created a deployment pipeline for an internally used UI package, and it works well. I would now like to implement a similar pipeline for this deployment process.

I also want authentication and authorization to be managed directly by the registry. Each customer should only be able to pull the applications they are authorized to access. I’m mainly curious about what third-party container registry providers offer that a self-hosted registry does not.

5

u/itsjakerobb Sep 17 '26

Why do you think self-hosting infrastructure in which you have no expertise would be more secure? That’s a flawed premise.

-2

u/Plastic-Switch1992 Sep 17 '26

I think use case is simple and there is no complex work if i pick a way. and the company's network is already allowed my server.

4

u/TheFriedArtichoke Sep 17 '26

To be fair, I think that something between considering this task simple and being on Reddit asking help/advice for it doesn't sum up. I'm not saying you shouldn't ask, I'm only saying that probably it isn't THAT simple.

1

u/TheFriedArtichoke Sep 17 '26

Each customer has their own Windows server hosted by a different provider, so we cannot rely on or become tied to any single cloud provider.

Maybe it's true that you can't be tied to any single cloud provider but I can't see why that premise would be the reason.

-1

u/Plastic-Switch1992 Sep 17 '26

Cost-efficency and security..

4

u/TheFriedArtichoke Sep 17 '26

yes, and what "Each customer has their own Windows server hosted by a different provider" has to do with it? I simply don't get the correlation.

1

u/SeaworthinessHour233 DevOps Engineer & Educator Sep 18 '26

Cost-effective. May be.

More secure. Not necessarily.

But if you want to do it Harbor or Gitea can do it.

4

u/flotaxy Sep 17 '26

gitea/forgejo bring a container registry with them

1

u/Hour-Swimmer7140 Sep 17 '26

the detail nobody has picked up is that your customer servers are windows and you have windows only apps. that shapes this more than the registry choice does.

windows container images are tied to the host build. something built on ltsc2022 wont run under process isolation on a 2019 host, so youre shipping a matrix rather than one image. theyre also enormous next to linux ones, so wherever you host it, the constraint is bandwidth out to each customer site rather than disk on your side.

harbor and zot both handle it fine. id work out the base image matrix first, thats the part that decides whether the plan works at all

1

u/angrymeditator Sep 17 '26

u can build the image locally in a tar and then host a private registry on github as it does offer that service.

1

u/Suitable-Ad5348 Sep 18 '26

Harbor is fine if you want verdaccio-for-images. gitlab registry too if you already run gitlab.

WSL docker is linux containers though. windows-only apps still need another path. get one linux service pulling from the registry on a customer box before you rip out RDP everywhere.

1

u/nekokattt Sep 18 '26

Why cant the customers run Linux on their servers if this is the main use case? Either you should be defining their system requirements entirely on the OS level, or you should be giving them instructions to run stuff in a Linux environment and providing the expectation that they manage a VM to run the application in and maintain it.

1

u/vlad_h Sep 18 '26

Brother, I think your are a bit confused or your terminology is incorrect. You don’t serve Dockerfiles, you use Dockerfile to make the container your application runs. The dockerfile builds the image, then you put the image in the registry. You do not need WSL. If you want to run on window, docker desktop or any but why would you? For windows specific apps, use VMs as they are hard to put on a container. For apps that can run on Linux, build the container and put it in your registry. That can be a private Azure registry or a private GitHub registry. If you want to automate this, get your customer to install Portainer or some other tool and that will pull your images and you can set it up to even re-deploy automatically. Many options here and this is haut the surface answer. Give me more details and I’ll give you better answer.

1

u/No-Philosopher9797 Sep 20 '26

I'd separate the registry decision from the deployment design. The registry is the easy part; replacing RDP + copy/paste with a repeatable, observable rollout is where you'll get the real win.

For self-hosting, plain Distribution is fine if you only need OCI storage and already have auth, TLS, backups, and monitoring elsewhere. Harbor is the better fit if you want projects/RBAC, robot accounts, auditability, retention, and vulnerability scanning in one place. Either way:

  • build once in CI, scan and sign it
  • give each customer pull-only credentials
  • deploy immutable versions or digests, never a moving latest
  • keep the previous digest and a tested rollback command

I'd pilot this on one customer server before replacing the current process. WSL can run the Linux containers, but it also becomes another production layer you own: Windows updates, reboots, networking, startup, disk growth, and support. If customers can provide a small Linux VM, that is usually cleaner. Keep the Windows-only app on its own deployment path rather than forcing everything into one model.

1

u/obakezan Sep 20 '26

your use case and scenario isn't clear. are the 5 apps being deployed to customers PCs or do you say you deploy them to your own server copying files? If the latter - this isn't neccessarily a docker issue it's a deployment issue - look at some sort of automated deployment - maybe Octopus deploy or something. If you aren't using docker now to run the apps - then you need more than a registry, you need to build the containers, deploy them, run and manage them as well which goes beyond a simple registry.

1

u/zorgonsrevenge Sep 21 '26

Have a look at zot - very easy to deploy. https://zotregistry.dev. Garbage collection that actually works.

1

u/rivotrilbleached Sep 24 '26

Zot does it handsomely for us

-1

u/chin_waghing kubectl delete ns kube-system Sep 17 '26

Why not just an S3 bucket?

They can just use a pre-signed URL or public URL to access the objects.

If they’re running windows then installing WSL may be a deal breaker especially on servers as you want as little stuff on them as possible. If a vendor said “you need to install WSL to pull an OCI image for updates” I’d laugh at them

15

u/Traditional_Donut908 Sep 17 '26

If you're using a bucket in S3, what would be the point of not using AWS ECR if you're already in AWS

3

u/trainurdoggos Sep 17 '26

Cause reinventing the wheel is more fun than using the wheel.

1

u/Plastic-Switch1992 Sep 17 '26

haha there's more than one way to skin a cat..

2

u/trainurdoggos Sep 17 '26

Just like there’s more than one way to make a wheel. But at the end of the day, the wheel is the wheel. The skinned cat is a skinned cat.

It isn’t hard. What the best fit for your situation? No one here can know your whole corporate situation, only you.

0

u/FlisherOfatale Sep 17 '26

Your rationale is the exact reason why security breach happen.

Trying to nickel and dime a self-hosted solution to save a few bucks per month introduce while costing more in time.

Unless your pull are really high volume, it’s probably only a few bucks per customer per months..

1

u/foofoo300 Sep 17 '26

are you for real?
how is self hosting less secure than a hosted service?

1

u/Dolapevich Sep 17 '26

While I LOVE selfhosting, a point can be made that some business doing hosting for a living has more incentives to keep the platform safe and up than someone whose main business is in other discipline.

If your main business is selling vegetables, maintaining self hosted infrastructure doesn't make a lot of sense, you'd need people, space, energy, patching etc, and you would be better buying all that for someone that specializes in that.

That is the business model behind "the cloud".

1

u/foofoo300 Sep 17 '26

yes we all know what a hosted service is.
Since you never know how secure a hosted service actually is, that statement is mostly irrelevant.
self-hosting is easy, cheap and if you have 5 brain cells at least as secure as some random SAAS. And since everybody is doing ai slop, i would say easily more secure.

1

u/FlisherOfatale Sep 17 '26

This is exactly the mindset that put business at risk. You are comparing AI slip to corporate grade service like dockerHub, and other business that actually have this as their core business.

The more it guys compensate for their problem by feeling godlike by trying to do everything in house , the more cybersecurity’s guys end up with jobs…

0

u/foofoo300 Sep 17 '26

yeah because a lot of people are idiots.
i am comparing myself with a SAAS and since i am doing exactly what these companies are doing, i can tell you that it is a: not rocket science and b: very easy to keep it secure.
it is not that hard, people just like to buy products because they suck at their job, especially managers

1

u/Dolapevich Sep 17 '26

For something... as simple as a docker registry, it might make sense. You'll need to provide authentication though, and manage certificates, maybe a firewall and waf? and an scalable storage, hdd fail, nvmes fail, bandwidth, availability monitoring...

And suddenly signing a contract with a good SLA, and paying a few dollars for someone that already built all that and it is its core business, makes sense.

Unless you are in a regulated business, where your options might shrink.

1

u/nekokattt Sep 18 '26

It isn't, if you can dedicate the time to maintaining it.

1

u/foofoo300 Sep 18 '26

that is why you automate that

1

u/nekokattt Sep 18 '26

which requires you to maintain the automation to be effective

0

u/Suitable-Ad5348 Sep 17 '26

Harbor or not work fine for self-hosting. For "each customer only pulls what they're allowed", Harbor's project-per-customer + robot accounts is the pattern I've seen work: one project per app line, scoped pull tokens, audit log on who pulled what.

Before you pick the registry though, nail down the Windows side: container images are tied to the host build (2019 vs 2022), and they're huge compared to Linux. You'll be shipping a matrix of tags, and customer bandwidth becomes the bottleneck, not disk on your side.both

0

u/[deleted] Sep 17 '26

[deleted] — view deleted comment

4

u/trainurdoggos Sep 17 '26

Dockerhub private registry is the last place I would store any corporate/company data, packages, or images.