Self-host DockerRegistry
v3.1.2OCI container registry to store and ship images yourself
- Stars
- 10 686
- Ports
- 5000 (registry HTTP API; 5000:5000 host mapping by default, changeable via REGISTRY_HTTP_ADDR), 5001 (optional debug server (metrics, /debug/vars) when http.debug.addr is configured)
registryWhat is DockerRegistry?
CNCF Distribution is the open-source registry server behind Docker Registry v2: a stateless HTTP service that stores container images and other OCI content and hands it to clients such as Docker and containerd. It conforms to release 1.0.1 of the OCI Distribution Specification, and stored objects are keyed by the digest of their contents, so any tampering breaks verification. Storage is delegated to pluggable drivers: the posix filesystem locally by default, plus S3 and S3-compatible object stores, Google Cloud Storage and Azure Blob, while new backend drivers are no longer accepted. Access control comes as htpasswd basic auth or as delegated token authentication against a trusted token service, and the server terminates TLS itself, including automatic Let's Encrypt certificates. Operators wire it into CI/CD with webhook event notifications, scrape Prometheus metrics and storage/notification/proxy stats from the debug server, cache layer metadata in Redis, freeze writes with a read-only maintenance mode, reclaim disk with the offline garbage-collect command, or point it at an upstream registry as a pull-through cache. Running it is a single container (registry:3 on port 5000) tuned by one YAML file whose keys map onto REGISTRY_-prefixed environment variables; Compose, Swarm services, systemd units for Docker or Podman and a source build with make are all documented. Limits worth knowing: there is no web interface, deletion by digest stays disabled until you opt in, garbage collection has to run while nothing uploads, a mirror handles only one upstream and cannot take pushes, and the docs stress that a production-ready instance must add TLS and access restrictions yourself.
DockerRegistry alternatives
Red Hat QuaySelf-hosted, open-source container image registry that stores OCI artifacts, scans with Clair, and runs standalone on Podman or on Kubernetes via the Quay Operator.CompareRed Hat Quay with DockerRegistry
artifact-keeperSelf-hosted artifact registry with 45+ formats, security scanning, peer replication, Artifactory migration. MIT licensed, no feature gates or per-user fees.Compareartifact-keeper with DockerRegistry
docker-registry-proxyA self-hosted caching proxy for Docker that centralizes registry config and auth, caches layers/manifests from any registry, and helps avoid rate limits.Comparedocker-registry-proxy with DockerRegistry
Versity S3 GatewayVersityGW is an open-source, Apache-2.0 S3 object-storage gateway in Go: it turns POSIX filesystems, ScoutFS or Azure Blob into an S3 API, with IAM, WebUI and Helm.CompareVersity S3 Gateway with DockerRegistry
docker-registry-uiSelf-hosted web UI for Docker registries with Trivy scanning, bulk cleanup, and multi-registry management.Comparedocker-registry-ui with DockerRegistry
UnregistryAn open-source, self-hosted container registry that stores images in Docker's containerd store and pushes them to remote servers over SSH with the docker pussh plugin.CompareUnregistry with DockerRegistry
folderhostA self-hosted, open-source cloud platform offering file sharing, real-time collaboration, and user management in a ~19MB binary as a lightweight Nextcloud alternativeComparefolderhost with DockerRegistry
pingvin-share-xOpen-source self-hosted file sharing platform and WeTransfer alternative with link sharing, expiration, passwords, ClamAV scanning, S3 support, and OIDC/LDAP auth.Comparepingvin-share-x with DockerRegistry
Should you self-host DockerRegistry?
DockerRegistry scores 74/100 on selfhost.directory (how scoring works) and ranks #2 of 12 in Container Registry. It has 10 686 GitHub stars, +43 in the last 30 days.
It shipped 3 stable releases in the past year. The latest, v3.1.2, came out on 24 September 2026. New versions land roughly every 3 months.
Setup is easy: most people get it running in one sitting. An official Docker image is available. It is Apache-2.0-licensed and written mostly in Go.
Its closest alternative on selfhost.directory is Harbor (80/100, 29 726 stars). It scores higher overall, so compare the two before you pick. See DockerRegistry vs Harbor side by side.
Features
- Basic authentication (htpasswd)bcrypt format only; must be combined with TLS.
- Catalog and tag listing APIsDocs recommend keeping the catalog endpoint behind elevated privileges.
- Content-addressable storage
- Deletion of blobs and manifestsDisabled by default; has to be turned on with storage delete.enabled.
- Garbage CollectionStop-the-world: registry must be read-only or stopped while it runs.
- Health Checks
- Middleware extensibility (CDN, redirect)Cloudfront middleware requires the S3 driver.
- OCI Distribution Specification implementation
- Pluggable storage backendsNew storage drivers are not currently being accepted; oss and swift are no longer supported.
- Prometheus Metrics
- Pull-through cache / registry mirrorOnly one upstream at a time; pushing to a pull-through cache is unsupported.
- Read-Only Mode
- TLS support with Let's Encrypt
- Token-based delegated authenticationRequires running or adopting your own token issuer.
- Webhook event notificationsQueues are in-memory, so messages can be lost if the instance dies.
DockerRegistry README
The toolset to pack, ship, store, and deliver content.
This repository's main product is the Open Source Registry implementation for storing and distributing container images and other content using the OCI Distribution Specification. The goal of this project is to provide a simple, secure, and scalable base for building a large scale registry solution or running a simple private registry. It is a core library for many registry operators including Docker Hub, GitHub Container Registry, GitLab Container Registry and DigitalOcean Container Registry, as well as the CNCF Harbor Project, and VMware Harbor Registry.
More in Container Registry
Docker Registry BrowserSelf-hosted, open-source web interface for browsing and managing Docker Registry HTTP API V2 repositories and tags, written in Ruby on Rails.
docker-registry-proxyA self-hosted caching proxy for Docker that centralizes registry config and auth, caches layers/manifests from any registry, and helps avoid rate limits.
docker-registry-uiSelf-hosted web UI for Docker registries with Trivy scanning, bulk cleanup, and multi-registry management.
Drone CIOpen-source, self-hosted DevOps platform: Git hosting, CI/CD pipelines, cloud dev environments and artifact registries. Drone's successor, runs in one Docker container.
HarborHarbor is an open-source, self-hosted container registry providing vulnerability scanning, image signing, and role-based access control for Kubernetes and Docker.
Red Hat QuaySelf-hosted, open-source container image registry that stores OCI artifacts, scans with Clair, and runs standalone on Podman or on Kubernetes via the Quay Operator.
registryoRegistryo is a self-hosted web UI and token auth server for private Docker Registry v2, with repository browsing, user management, and password recovery.
registry-uiSelf-hosted open-source web UI for Docker Registry V2 — mobile-first, dark mode, smart tag deletion, no database required.
Sonatype NexusSelf-hosted, open-source binary artifact repository manager for Maven, npm, Docker, PyPI and more, with proxy caching, RBAC and REST APIs.
UnregistryAn open-source, self-hosted container registry that stores images in Docker's containerd store and pushes them to remote servers over SSH with the docker pussh plugin.
Zot Registryzot - A scale-out production-ready vendor-neutral OCI-native container image/artifact registry (purely based on OCI Distribution Specification)
artifact-keeperSelf-hosted artifact registry with 45+ formats, security scanning, peer replication, Artifactory migration. MIT licensed, no feature gates or per-user fees.
0 comments