selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

DockerRegistry logo

Self-host DockerRegistry

v3.1.2

OCI container registry to store and ship images yourself

ReleaseOpen SourceApache-2.0
Updatedlast month
LanguageGo
Setup difficultyEasy
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)
Docker
registry
Install with Docker

What is DockerRegistry?

DockerRegistry alternatives

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

Build Status GoDoc License: Apache-2.0 codecov FOSSA Status OCI Conformance OpenSSF Scorecard

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.

How to install DockerRegistry

Install DockerRegistry with Docker

Before you can deploy a registry, you need to install Docker on the host.

$ docker run -d -p 5000:5000 --restart=always --name registry registry:3

Install Docker on the host first; data persists in a Docker volume at /var/lib/registry unless bind-mounted.

How to configure DockerRegistry

  • REGISTRY_HTTP_ADDROverride of http.addr: address the registry listens on inside the container (default port 5000).

    values: HOST:PORT, e.g. 0.0.0.0:5001

  • REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY/var/lib/registryOverride of storage.filesystem.rootdirectory, where image data is kept.

    values: directory path

  • REGISTRY_AUTH_HTPASSWD_REALMRealm announced by the htpasswd basic-auth provider.

    values: string

  • REGISTRY_AUTH_HTPASSWD_PATHPath to the Apache htpasswd file (bcrypt entries only), loaded once at startup.

    values: file path

  • REGISTRY_HTTP_TLS_CERTIFICATEPath to the x509 certificate file used to serve TLS.

    values: file path

DockerRegistry releases & version history

@ Every self-hosted release, weekly

One Monday email with the week's stable releases across the directory.

More in Container Registry

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…