Deploy Registreasy, a self-hosted Docker image registry with a push user, a pull user and a web page that lists your images, on Render with a persistent disk.
The Blueprint creates a registreasy project with a production environment:
| Resource | Type | Plan | Notes |
|---|---|---|---|
registreasy |
Web service (prebuilt image) | Starter | Runs ghcr.io/dellarb/registreasy:0.1 |
registry-data |
Persistent disk, 20 GB | Mounted at /data |
|
registreasy-settings |
Environment group | Passwords and settings |
Registreasy runs the CNCF Distribution
registry behind Nginx in one container. Image layers, the web page's settings
and the registry's upload secret live on the disk, so they survive deploys
and restarts. Render terminates TLS, so Docker clients talk to the registry
over HTTPS with no insecure-registries setting.
-
Click Deploy to Render above, or create a Blueprint in the Render Dashboard that points at this repository.
-
When the deploy is live, open the
registreasy-settingsenvironment group in the Render Dashboard and copy the generatedPUSH_PASSWORDandPULL_PASSWORD. -
Push an image. Replace
<your-service>with your service's hostname:docker login <your-service>.onrender.com -u push docker pull alpine:3.22 docker tag alpine:3.22 <your-service>.onrender.com/example/alpine:demo docker push <your-service>.onrender.com/example/alpine:demo
-
Pull it from another machine with the pull user:
docker login <your-service>.onrender.com -u pull docker pull <your-service>.onrender.com/example/alpine:demo
Docker keeps one login per hostname, so a
pushlogin and apulllogin on the same machine replace each other. -
Open
https://<your-service>.onrender.comand sign in to see your images. The push user can delete tags and run garbage collection under Settings.
Change settings in the registreasy-settings environment group. The service
restarts when you save.
| Variable | Default here | Meaning |
|---|---|---|
PUSH_PASSWORD |
generated | Password for the push user. Required |
PULL_PASSWORD |
generated | Password for the pull user. Delete it to allow anonymous pulls |
PUSH_USERNAME / PULL_USERNAME |
push / pull |
Account names |
REQUIRE_HTTPS |
0 |
Keep 0 on Render. See below |
TZ |
UTC |
Timezone for the daily garbage collection window |
See the Registreasy README for the other settings.
Registreasy accepts plain HTTP only from private addresses. For public use,
its README says to set REQUIRE_HTTPS=1 and TRUSTED_PROXY to the TLS
proxy's IP. Render's proxy has no single fixed IP, so don't set
TRUSTED_PROXY. With it unset, Registreasy trusts forwarding headers from
private addresses, which include Render's proxy. It then sees the real client
address and that the client used HTTPS. Render already redirects plain HTTP
to HTTPS, so no password crosses the internet unencrypted.
Other services on your Render private network can reach the registry over
plain HTTP at registreasy:5000, because their addresses are private.
- A persistent disk attaches to one instance, so the service can't scale to more than one instance.
- Render stops the old instance before it starts the new one, so each deploy has a few seconds of downtime.
- Garbage collection closes the registry for up to
GC_TIMEOUT_SECONDS(default 900). The Blueprint sets no health check path, so Render doesn't restart the instance while collection runs. - Registreasy logs and rate-limits by the address of Render's edge proxy, not the real client address, because it only trusts forwarding headers from private addresses. HTTPS detection is not affected. Failed sign-ins still lock the targeted account after repeated attempts.
- Images use disk space until you delete tags and run garbage collection. Render can grow a disk but can't shrink it.
Render takes daily disk snapshots. See maintenance and recovery for Registreasy's own backup advice.
The 0.1 image tag points at the newest 0.1.x patch release. Render pulls
the tag again when you deploy, so trigger a manual deploy of the
registreasy service to pick up a patch release. To move to a new
minor version, change the tag in render.yaml and push. Read the
release notes first.