DevOps12 min read•Updated November 2026

VPS Hosting for Private Docker Registries

Quick answer

To run a private Docker registry on a VPS, choose between the lightweight open-source Distribution registry (the registry image), Harbor for a full-featured registry with a web UI, projects, role-based access and vulnerability scanning, or the registry built into a Git platform you already self-host. Serve it over HTTPS with a real certificate, require authentication, store images on local NVMe or object storage, schedule garbage collection to reclaim space from deleted images, scan images for vulnerabilities, back up configuration and storage, and size disk for how many images and versions you keep.

Every team that builds containers needs somewhere to push images. Public registries work, but private images on hosted registries can be costly, rate limits affect busy pipelines, and some teams want images and their contents kept on infrastructure they control. A private registry on a VPS close to your build servers and deployment targets also makes pushes and pulls fast.

Registry Options

OptionWhat you getBest for
Distribution (registry image)Minimal, fast registry implementing the OCI distribution API; no UISmall teams, simple setups, pull-through caches
HarborWeb UI, projects, RBAC, vulnerability scanning, replication, retention policies, signing supportTeams needing access control and governance
Git platform registries (GitLab, Gitea, Forgejo)Images stored next to the code, permissions from repositoriesTeams already self-hosting a Git platform

Harbor is a graduated CNCF project and runs as several containers (core, database, Redis, job service, scanner), so it needs more memory than the minimal registry.

HTTPS and Authentication

Docker refuses to talk to a registry over plain HTTP unless it is marked as insecure on every client, which you should avoid. Serve the registry at a dedicated hostname with a trusted certificate, either through Nginx or Caddy in front or the registry's own TLS settings. Then require authentication: htpasswd basic auth works for the minimal registry; Harbor and Git platforms provide users, groups, robot accounts and tokens.

  • Use separate credentials for CI pushes and for servers that only pull.
  • Give deployment servers read-only access.
  • Rotate tokens and remove accounts for people who leave.
  • Set Nginx's client_max_body_size high enough (or unlimited) for large image layers, with suitable timeouts.

Storage

Images are stored as layers, and layers shared between images are stored once. Even so, registries grow quickly when every commit produces a new image. Store data on fast local NVMe for small and medium registries, or use an S3-compatible object storage backend for large or growing ones. Keep the registry's data on a separate volume or directory from the system so a full registry cannot take down the operating system.

Retention and Garbage Collection

Deleting a tag does not immediately free disk space. Layers become unreferenced and are removed only by garbage collection.

  • Define retention rules: for example keep the last 20 builds per branch plus every release tag.
  • Harbor offers tag retention policies and scheduled garbage collection in its UI.
  • With the minimal registry, enable deletes, remove old tags through the API or a cleanup tool, and run the garbage-collect command during a maintenance window, since pushes during collection can be affected; consult the documentation for your version.
  • Monitor disk usage and alert well before the disk fills.

Vulnerability Scanning and Trust

Scan images for known vulnerabilities on push and on a schedule, because new vulnerabilities are published for old images. Harbor integrates scanners such as Trivy; with the minimal registry, scan in your CI pipeline before pushing. Rebuild images regularly on updated base images, and consider image signing so deployment servers only run images your pipeline produced.

Pull-Through Cache

A registry configured as a pull-through cache (proxy) for a public registry stores images your servers pull, so repeated pulls come from your VPS. This speeds up CI, reduces exposure to public pull rate limits, and keeps builds working if the upstream is briefly unavailable. Harbor supports proxy cache projects, and the minimal registry can run in proxy mode.

Using It in CI and Deployments

Pipelines log in with a robot account, build and tag images with the commit SHA and version, push, and deploy by digest or immutable tag. Avoid deploying latest, because you cannot tell which build is running. See our Jenkins guide and Docker deployment guide. Clusters such as k3s can pull from the registry using configured credentials (see our k3s guide).

Backups

Back up registry configuration, the database (Harbor or Git platform) and image storage. For object storage backends, use versioning or replication. Many teams treat images as rebuildable and back up only release images and configuration; decide which applies to you, but make sure release images you might need to roll back to are safe.

Monitoring

Track disk or bucket usage, push and pull error rates, response times, certificate expiry and scan results with critical findings. The minimal registry exposes Prometheus metrics when enabled, and Harbor has its own metrics endpoints.

Sizing

SetupSuggested plan
Minimal registry for a small team2 vCores / 8 GB with ample NVMe
Harbor with scanning for several teams4 vCores / 16 GB
Large image volumes, many pipelines4 to 8 vCores with object storage backend

Network bandwidth matters: placing the registry in the same region as your build servers and deployment targets keeps pulls fast.

Example: An Agency Pipeline

A software agency runs Harbor on a 4 vCore / 16 GB VPS. Each client has a project with its own robot accounts, CI pushes images tagged with commit SHAs, Trivy scans every push and blocks critical vulnerabilities from deployment, retention keeps 15 builds per project plus release tags, and garbage collection runs every Sunday night. A proxy cache project mirrors common public base images for faster builds.

Common Mistakes

  • Running a registry over HTTP and marking it insecure everywhere.
  • No retention or garbage collection, so the disk fills.
  • One shared admin password used by every pipeline and server.
  • Deploying the latest tag.
  • Never rescanning old images.

In Short

Pick a registry that matches your governance needs, serve it over HTTPS with scoped credentials, plan storage, enforce retention and garbage collection, scan images, cache public images, and deploy immutable tags.

SkyRainCloud Plans for This Workload

A registry is mostly storage and network: 2 vCores / 8 GB runs a basic registry or a small Harbor install. Plan disk for image growth, or use object storage as the backend.

AMD EPYC 7C13 VPS

Dedicated KVM vCores on AMD EPYC 7C13 (up to 3.70 GHz) with DDR4 ECC memory, NVMe SSD and an unmetered 1 Gbps port.

PlanvCoresRAMStorageNetworkPriceGood forBuy
VPS 1 — AMD28 GB DDR4 ECC40 GB NVMe SSD1 Gbps, unmetered₹649/monthWebsites, small APIs, bots, staging and VPN serversOrder
VPS 2 — AMD416 GB DDR4 ECC80 GB NVMe SSD1 Gbps, unmetered₹1,299/monthWooCommerce, Node.js/Python backends, Docker Compose stacks, CI runnersOrder
VPS 3 — AMD832 GB DDR4 ECC150 GB NVMe SSD1 Gbps, unmetered₹2,499/monthProduction databases, high-traffic sites, multi-container appsOrder
VPS 4 — AMD1664 GB DDR4 ECC250 GB NVMe SSD1 Gbps, unmetered₹4,899/monthLarge production workloads, SaaS platforms, analytics, in-memory cachesOrder

Intel Xeon Platinum 8269CY VPS

KVM VPS on Intel Xeon Platinum 8269CY (up to 3.80 GHz Turbo) with DDR4 ECC memory, NVMe SSD, full root access and an unmetered 1 Gbps port.

PlanvCoresRAMStorageNetworkPriceGood forBuy
VPS 1 — Intel28 GB DDR4 ECC40 GB NVMe SSD1 Gbps, unmetered₹649/monthBusiness websites, small apps, scheduled jobs and botsOrder
VPS 2 — Intel416 GB DDR4 ECC80 GB NVMe SSD1 Gbps, unmetered₹1,169/monthBusiness software, mid-size databases, several sites on one serverCheck stock
VPS 3 — Intel832 GB DDR4 ECC150 GB NVMe SSD1 Gbps, unmetered₹2,249/monthERP/CRM stacks, heavier databases, multiple production appsCheck stock
VPS 4 — Intel1664 GB DDR4 ECC250 GB NVMe SSD1 Gbps, unmetered₹4,299/monthHigh-memory workloads and consolidated production serversCheck stock

Prices are monthly in INR as listed on the SkyRainCloud store (verified 2026-11-14). Stock and final pricing are shown on the product page at checkout.

Frequently Asked Questions

Can I run a private Docker registry on a VPS?
Yes. The Distribution registry image, Harbor or a Git platform's built-in registry all run well on a VPS.
What is the difference between the registry image and Harbor?
The registry image is a minimal storage API without a UI; Harbor adds projects, RBAC, scanning, replication and retention policies.
Does a private registry need HTTPS?
Yes. Docker expects HTTPS; using insecure HTTP requires special client configuration and is not recommended.
Why does deleting images not free disk space?
Deleting tags leaves unreferenced layers; garbage collection removes them.
How do I limit how many images are kept?
Use retention policies (Harbor) or cleanup scripts to delete old tags, followed by garbage collection.
Can a registry scan images for vulnerabilities?
Harbor integrates scanners such as Trivy; otherwise scan images in CI before pushing.
What is a pull-through cache?
A registry that proxies a public registry and stores pulled images locally, speeding up pulls and reducing rate-limit issues.
Where should image data be stored?
On fast local NVMe for small registries, or an S3-compatible object storage backend for large ones.
How should servers authenticate to the registry?
With read-only robot accounts or tokens, separate from the push credentials used by CI.
Which plan suits a private registry?
2 vCores / 8 GB for a minimal registry; 4 vCores / 16 GB for Harbor with scanning.
Instant UPI • ₹649/mo
Fast KVM Cloud Provisioning