Über uns
Self-hosted OCI container registry with a built-in web UI and online garbage collection. Single Go binary, SQLite metadata, local disk or S3 blobs.
Systeme und InfrastrukturGemessener Sternzuwachs
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- Verlauf wird gesammelt
- in 1 month
- Verlauf wird gesammelt
Nettoänderungen in überlappenden Zeiträumen, keine Tagessummen. Fehlende Messwerte bleiben leer. Sterne zeigen Interesse, nicht Qualität.
README.md
Originaldoreg
The container registry you'll actually enjoy opening.
Push, pull, browse, clean up. A self-hosted OCI registry with a proper web UI, SSO, robot accounts and garbage collection that never asks you to go read-only. One binary, no extra services.
Quick start · What you get · Configuration · Reverse proxy · Access · Storage · Webhooks · Garbage collection · Migrating · Development

registry:2 stores images fine, but it has no UI, users live in an htpasswd file, and cleaning up
means stopping it. Harbor fixes all that and brings a database server, Redis and half a dozen
containers along. doreg is the middle ground: what a team uses every day, in one process with one
data directory. Back up the directory and you've backed up the registry.
🚀 Quick start
1. Run it.
docker run -d --name doreg -p 8080:8080 -v doreg-data:/data \
-e DOREG_ADMIN_PASSWORD='choose-a-long-password' ghcr.io/p-arndt/doreg:latest
Or with Docker Compose:
services:
doreg:
image: ghcr.io/p-arndt/doreg:latest
restart: unless-stopped
environment:
DOREG_ADMIN_PASSWORD: ${DOREG_ADMIN_PASSWORD:?set DOREG_ADMIN_PASSWORD}
volumes:
- doreg-data:/data
ports:
- "8080:8080"
volumes:
doreg-data:
DOREG_ADMIN_PASSWORD='choose-a-long-password' docker compose up -d
deploy/compose.yaml has the full version with Traefik and SSO options;
deploy/compose.s3.yaml adds a bundled RustFS for S3 blob storage;
deploy/compose.postgres.yaml keeps the metadata in a bundled PostgreSQL.
2. Push something.
docker login reg.example.com
docker tag my-app reg.example.com/my-app:1.0
docker push reg.example.com/my-app:1.0
3. Open https://reg.example.com and look around.
[!TIP] Put it behind a TLS-terminating proxy (Traefik, Caddy, nginx): docker only sends credentials over HTTPS, except to
localhost. The proxy must keep theHostheader and allow large, slow uploads; see reverse proxy for working configs.
What you get
| 📦 Speaks OCI 1.1 | Passes the official conformance suite. docker, buildx (multi-arch, SBOM and provenance), containerd, podman, crane and oras all just work. Manifests are served byte for byte as pushed. |
| 🧹 Online garbage collection | Untagged manifests and orphaned layers go away while pushes and pulls keep running. Preview any run first: same code path, rolled back. |
| ⏳ Retention policies | Keep the newest N, drop tags older than X days, per repository glob, with protected tags. Recently pulled digests survive, so pinned deployments stay safe. |
| 🔐 Projects and roles | read, write and admin per project, for users or OIDC groups. Public projects and storage quotas. |
| 🤖 Robot accounts | Credentials for CI: pull by default, push and delete if you say so, with expiry and secret rotation. |
| 🪪 Single sign-on | Any OpenID Connect provider. doreg login logs docker in through the browser, no secret copying. |
| 🔔 Webhooks and audit log | Signed, retried webhooks for pushes, pulls, deletes, quota hits and GC runs. Every change is in the audit log. |
| 🚚 Import | Pull every repository of an existing registry (registry:2, Harbor, GHCR, ...) in from the UI. Digests stay the same, reruns skip what's done. |
| 🪶 Small | One static binary or a 22 MB distroless image. SQLite (or PostgreSQL) plus blobs on disk or in any S3 bucket. |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
📚 Documentation
All pages, grouped by task: docs/.
| Configuration | Every environment variable in one place, and which settings live in the UI. |
| Reverse proxy | Headers, body limits and timeouts, with Traefik, Caddy and nginx examples. |
| Access | Projects and roles, public repositories, robot accounts, single sign-on, doreg login. |
| Storage | Local disk or S3 for blobs, SQLite or PostgreSQL for metadata. |
| Webhooks and audit log | Events, payload, signature verification. |
| Garbage collection | Schedule, retention policies, why it is safe while pushes run. |
| Migrating | Import from registry:2, Harbor, GHCR or Docker Hub, in the UI or with doreg import. |
🛠️ Development
cp .env.example .env
docker compose up -d # minisuite (OIDC, S3, mail) and the push proxy
just dev # API on localhost:8080 plus the UI with hot reload on localhost:5173
Open http://localhost:5173: Vite serves the UI with hot reload and proxies /api and /v2 to the API, and the dev SSO login returns there too. just dev-api runs only the API; just web-build embeds the UI into the binary.
compose.yaml holds only the dependencies, minisuite; doreg runs on the host. Sign in with SSO as alice (admin) or bob (normal user); the passwords are the same as the usernames. The overview page at localhost:9900 lists all URLs.
Docker Desktop's daemon cannot reach a process on the host's localhost, so push and pull through the proxy on port 5050:
docker login localhost:5050 -u alice # password: CLI secret from the account page
docker push localhost:5050/team/api:dev
go run ./cmd/doreg login ... runs the CLI without installing it, for example go run ./cmd/doreg login --docker-host localhost:5050 localhost:5173.
just # list recipes
just ci # gofmt, vet, tests, UI check, lint and tests
just test-postgres # Go tests against the compose PostgreSQL (docker compose up -d postgres)
just release # cut a release (stamp)
License
Ähnliche Projekte entdecken
Wird geladen…





