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
| Option | What you get | Best for |
|---|---|---|
Distribution (registry image) | Minimal, fast registry implementing the OCI distribution API; no UI | Small teams, simple setups, pull-through caches |
| Harbor | Web UI, projects, RBAC, vulnerability scanning, replication, retention policies, signing support | Teams needing access control and governance |
| Git platform registries (GitLab, Gitea, Forgejo) | Images stored next to the code, permissions from repositories | Teams 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_sizehigh 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-collectcommand 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
| Setup | Suggested plan |
|---|---|
| Minimal registry for a small team | 2 vCores / 8 GB with ample NVMe |
| Harbor with scanning for several teams | 4 vCores / 16 GB |
| Large image volumes, many pipelines | 4 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
latesttag. - 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.
| Plan | vCores | RAM | Storage | Network | Price | Good for | Buy |
|---|---|---|---|---|---|---|---|
| VPS 1 — AMD | 2 | 8 GB DDR4 ECC | 40 GB NVMe SSD | 1 Gbps, unmetered | ₹649/month | Websites, small APIs, bots, staging and VPN servers | Order |
| VPS 2 — AMD | 4 | 16 GB DDR4 ECC | 80 GB NVMe SSD | 1 Gbps, unmetered | ₹1,299/month | WooCommerce, Node.js/Python backends, Docker Compose stacks, CI runners | Order |
| VPS 3 — AMD | 8 | 32 GB DDR4 ECC | 150 GB NVMe SSD | 1 Gbps, unmetered | ₹2,499/month | Production databases, high-traffic sites, multi-container apps | Order |
| VPS 4 — AMD | 16 | 64 GB DDR4 ECC | 250 GB NVMe SSD | 1 Gbps, unmetered | ₹4,899/month | Large production workloads, SaaS platforms, analytics, in-memory caches | Order |
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.
| Plan | vCores | RAM | Storage | Network | Price | Good for | Buy |
|---|---|---|---|---|---|---|---|
| VPS 1 — Intel | 2 | 8 GB DDR4 ECC | 40 GB NVMe SSD | 1 Gbps, unmetered | ₹649/month | Business websites, small apps, scheduled jobs and bots | Order |
| VPS 2 — Intel | 4 | 16 GB DDR4 ECC | 80 GB NVMe SSD | 1 Gbps, unmetered | ₹1,169/month | Business software, mid-size databases, several sites on one server | Check stock |
| VPS 3 — Intel | 8 | 32 GB DDR4 ECC | 150 GB NVMe SSD | 1 Gbps, unmetered | ₹2,249/month | ERP/CRM stacks, heavier databases, multiple production apps | Check stock |
| VPS 4 — Intel | 16 | 64 GB DDR4 ECC | 250 GB NVMe SSD | 1 Gbps, unmetered | ₹4,299/month | High-memory workloads and consolidated production servers | Check 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.