Container registry
- Version
- since 2.x, describes 2.52.14
- Feature flag
container_registry- For
- Workspace user, Workspace administrator, Platform operator
The container registry gives each workspace a private image project on the deployment's Harbor registry, issues the credentials that docker login needs from the web app, and caches public images from Docker Hub and NVIDIA NGC on first pull so that repeat pulls are served locally. Workspace administrators enable the registry and manage credentials under Workspace settings; operators register the registry in the operator console, watch its health and the state of the upstream caches, and set per-workspace storage quotas.
What it does
- Backs every deployment with one Harbor instance (the integration target is Harbor 2.x, validated against 2.15.2). The platform talks to its API with one platform robot credential; users never log in to Harbor itself, and operators reach its console through a deep link in the operator console.
- Creates one registry project per workspace, named
ws-<workspace id>, when a workspace administrator presses Enable container registry. The project receives a storage quota at creation: the deployment's default grant, 50 GB unless the deployment sets another value. - Issues robot credentials scoped to the workspace project, with pull only or pull and push access. The secret is returned exactly once, in the response that creates the credential, and is never stored or shown again. The username is the full principal Harbor mints:
robot$ws-<workspace id>+<name>. - Revokes a credential immediately on request; the entry is kept as an audit record and its name becomes reusable.
- Serves the pull-through caches
dockerhub-proxy(Docker Hub) andngc-proxy(NVIDIA NGC). Both are public projects: pulling through them needs no credential. - Shows the workspace its live storage usage against its quota and its repository count, degrading to a notice when the registry cannot be reached.
- Shows operators the endpoint's probed health, the ping verdict of each upstream cache, every workspace project with quota, usage and status, and a quota override per project.
- Hides every workspace route and the console's proxy-cache and project sections behind the
container_registryfeature flag. Endpoint registration and health checks stay reachable with the flag off, so bring-up can finish before anything becomes visible to users.
Where it is
| Surface | Path |
|---|---|
| Web app | Workspace settings, then Container Registry: Storage usage, Access credentials, Public image caching |
| Operator console | Platform, then Registry: Endpoints (with Open registry console), Proxy caches, Workspace projects |
| API (workspace) | GET /api/v1/workspaces/{workspace_id}/registry; POST /api/v1/workspaces/{workspace_id}/registry (enable); POST .../registry/robots; DELETE .../registry/robots/{id} |
| API (operators) | GET, POST /admin/registry/endpoints; PATCH, DELETE /admin/registry/endpoints/{id}; POST /admin/registry/endpoints/{id}/health; GET /admin/registry/projects; PATCH /admin/registry/projects/{id} |
| CLI | cerebro registry login (lists the workspace's active credentials and prints the docker login template; it cannot mint or print a secret; see CLI) |
Reading the registry page is open to every workspace member; enabling the registry and creating or revoking credentials require the ManageWorkspaceCredentials permission. The operator console page requires the admin_feature_flags staff permission.
How to use it
Enable the registry for a workspace (workspace administrator)
- Open Workspace settings, then Container Registry. Until the registry is enabled, the page shows the Enable container registry card (the API answers
404 registry_project_missingin this state, which is the normal "not enabled yet" state, not an error). - Press Enable container registry. The platform checks the workspace's registry quota frame for the default grant, creates the project on Harbor within the request and shows it as
active. While the project is stillprovisioningthe page refreshes every 10 seconds; if the creation failed, a banner shows the message and a Retry button. - The Storage usage card shows the used bytes against the quota, the repository count, the registry project name and the storage quota grant ("Unlimited" when no bound was set).
Create a credential and log in (workspace administrator)
- In Access credentials, press Create credential. Give it a name in lowercase letters and digits, with single dots, dashes or underscores in between (for example
ci-pull), and choose Pull only or Pull & push. Credentials can only be created while the project isactive. - The Credential created dialog shows the Username (the full robot name), the Secret and a ready-to-paste command of the form
docker login <registry host> -u '<username>' -p '<secret>'. Save them now: the secret is not shown again, and a lost secret means revoking the credential and creating a new one. Closing the dialog drops the secret from the browser's memory. - Run the command on the machine that will pull or push. Keep the username in single quotes; the
$in it is otherwise interpreted by the shell. Images in the workspace project are addressed as<registry host>/ws-<workspace id>/<repository>:<tag>. - Revoke a credential from the table. Pulls and pushes using it stop at once; the row stays listed as Revoked.
Pull public images through the cache (workspace user)
- In Public image caching, copy the Docker Hub or NVIDIA NGC example. The path rule is
<registry host>/<proxy project>/<upstream repository path>:<tag>; Docker Hub official images keep their implicitlibrary/prefix, for example<registry host>/dockerhub-proxy/library/ubuntu:24.04and<registry host>/ngc-proxy/nvidia/cuda:<tag>. - The first pull fetches the image from the upstream and caches it; later pulls of the same tag are served from the cache. No credential is needed.
Register the registry (operator)
- In the operator console open Platform, then Registry, and press Register endpoint. Enter a name, the API URL including its versioned path segment
/api/v2.0(a bare host reads as permanently unreachable), the optional Console URL for the deep link, and the Auth secret reference: the name under which the platform robot credential is configured on the API hosts, inrobot-name:secretform, never the value itself. The credential is read when the API process starts. - Press Activate. Exactly one endpoint is active per deployment; activating one deactivates the previous one in the same step, and the active endpoint cannot be deleted (
registry_endpoint_active). - Press Probe health. The status must read Healthy, and the Proxy caches cards must list
dockerhubandngcwith a healthy ping verdict; the cards show the result of the most recent probe run from the page. Do not switch the flag on while the endpoint reads Unreachable. - Make sure the workspaces have quota frames with room for the default grant: an enable in a workspace without a frame fails with
quota_frame_missing, and one whose frame's registry cap is below the default grant plus what the workspace already holds fails withquota_exceeded_registry_workspace. See Quotas and capacity for theregistry_gbdimension. - Switch
container_registryon under Platform, then Feature flags. The Proxy caches and Workspace projects sections appear in the console and the Container Registry tab appears under Workspace settings. The registry's own installation and provisioning (TLS, the two upstream cache entries, the public proxy projects, the platform robot, admin-only project creation) are on Deployment and integration. - Use Override quota on a workspace project to change its grant: a whole number of GB from 1 upwards, or Unlimited where no frame or pool caps registry storage. Re-applying a quota also reconciles a project that sits in
errorafter a failed backend update.
On-demand and on-prem
- On-demand (web): switched on. We run the registry; you see the Container Registry tab in the workspace settings.
- Licensed on-prem: the registry is deployed in your data centre, provisioned with the shipped script and registered in the operator console by your operators, who also hold the platform robot credential. The capability is switched on with the
container_registryflag after the endpoint is registered, activated and probed healthy; see Deployment and integration for the order and Configuration for the flag.
Numbers
Projects, credentials and quotas
| What | Value | Where it is set |
|---|---|---|
| Registry projects per workspace | 1, named ws-<workspace id> | platform |
| Default storage quota of a new project | 50 GB, applied at creation only; later changes go through the operator's quota override | per deployment |
| Quota override | a whole number of GB from 1 upwards (invalid_registry_quota otherwise), or unlimited where no frame or pool caps registry_gb | operator console |
| Quota accounting | the registry_gb dimension counts the sum of granted project quotas, not the bytes in use; an unlimited grant counts 0 and is refused wherever a frame or pool caps the dimension | platform |
| Credential name | 1 to 255 characters: lowercase letters and digits with single ., _ or - separators, no leading or trailing separator (invalid_robot_name) | platform |
| Credential access | pull or push_pull | platform |
| Credential expiry | none; robots are created without an expiry | platform |
| Credentials per workspace | no limit is enforced by the platform in 2.48.6 | platform |
| Secret visibility | once, in the 201 response of the create call and in the dialog built from it | platform |
| Pull-through projects | dockerhub-proxy and ngc-proxy, public | provisioning script |
| Workspace projects listed in the operator console | up to 200 rows per read | platform |
Refresh and background jobs
| What | Value |
|---|---|
| Registry page refresh | every 10 s while the project is provisioning; otherwise on page load and after each action |
| Endpoint health probe | every 5 minutes, also while the flag is off; Probe health runs it at once and refreshes the proxy-cache cards |
| Stale-state sweep | every 5 minutes: a project provisioning for more than 15 minutes is set to error, after which Retry applies |
| Lock-out after a failed login | about 1.5 s per principal on the registry's side; repeated attempts with a wrong credential compound it |
| First pull through a cache | the repository record appears in the registry a few seconds after the pull completes |
Project statuses
| Status | Meaning |
|---|---|
provisioning | the row exists, the backend project is being created |
active | the backend project exists; credentials can be issued |
error | the last create or quota update failed; the message is shown in the page banner and the console tooltip; Retry or a quota override reconciles it |
Reason codes
| Code | HTTP | Meaning |
|---|---|---|
feature_disabled | 404 | the container_registry flag is off |
registry_project_missing | 404 | the workspace has not enabled the registry yet |
registry_endpoint_unavailable | 404 or 400 | no endpoint is active, or its credential cannot be read |
registry_endpoint_active | 409 | an operator tried to delete the active endpoint |
registry_project_not_ready | 409 | credential create while the project is provisioning or in error |
robot_name_taken | 409 | an active credential with that name exists |
robot_revoked | 409 | the credential is already revoked |
invalid_robot_name, invalid_robot_access | 400 | name outside the rule above; access other than pull or push_pull |
invalid_registry_quota | 400 | a bounded override below 1 GB |
quota_exceeded_registry_workspace, ..._account, ..._pool_capacity | 400 | the registry quota at that level is reached |
quota_frame_missing | 400 | the workspace has no quota frame |
unlimited_registry_grants_exist | 409 | an operator tried to cap registry_gb on a frame or pool while a workspace under it holds an unlimited grant |
Limits and known behaviour
- No vulnerability scanning, no image signing and no replication between deployments in 2.48.6. The registry runs in its stock composition and nothing in the platform assumes those features.
- The registry stores images on its local filesystem in 2.48.6. Object storage on the Ceph gateway is the documented upgrade path, a registry-side change the platform does not see.
- One registry project per workspace; there is no per-project (Cerebro project) scoping of repositories or credentials.
- Credentials are issued only in the web app or through the API, never by the CLI, and a secret cannot be retrieved after creation.
- Pull-through caches are public and anonymous. Docker Hub's anonymous rate limits apply to the cache's upstream pulls; operators can add Docker Hub credentials to the upstream entry in the registry itself.
- Storage usage shown to the workspace is read live from the registry and degrades to a notice when the registry cannot be reached; the operator console lists a dash in the same case. The report pages carry the same degrade (see Reports and accounting).
- The platform never reads a quota back from the registry: the Storage quota grant is the platform's record, while the limit in the usage bar is read live from the registry. Change quotas with Override quota so both agree.
- Deleting a workspace revokes its active credentials first, then deletes its registry project, best-effort and regardless of the flag. A project the registry refused to delete (for example because it still holds repositories) is kept in the operator console's Workspace projects list for manual clean-up through the registry console; its credentials are already dead.
- There is no action to remove a registry project while its workspace exists.
- Switching
container_registryoff makes every workspace route and the console's proxy-cache and project sections answer404 feature_disabled. Nothing is deleted and no credential is revoked:docker pullanddocker pushtalk to the registry directly and keep working with issued credentials, and the health probe and the stale-state sweep keep running. Switching it back on resumes where it left off. - The platform robot credential is read when the API process starts; after a rotation the process must be restarted (see Operations).
- Planned: nothing is scheduled platform-side; scanning, signing and the object storage back end are registry-side decisions documented for later.
Related pages
- Capabilities by delivery model
- Quotas and capacity: the
registry_gbdimension and the unlimited-grant rule - Reports and accounting: registry grants and live usage in consumption reports
- Deployment and integration: installing and provisioning the registry
- Operations: credential rotation, troubleshooting
- CLI:
cerebro registry login