Skip to main content

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) and ngc-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_registry feature 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​

SurfacePath
Web appWorkspace settings, then Container Registry: Storage usage, Access credentials, Public image caching
Operator consolePlatform, 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}
CLIcerebro 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)​

  1. 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_missing in this state, which is the normal "not enabled yet" state, not an error).
  2. 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 still provisioning the page refreshes every 10 seconds; if the creation failed, a banner shows the message and a Retry button.
  3. 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)​

  1. 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 is active.
  2. 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.
  3. 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>.
  4. 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)​

  1. 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 implicit library/ prefix, for example <registry host>/dockerhub-proxy/library/ubuntu:24.04 and <registry host>/ngc-proxy/nvidia/cuda:<tag>.
  2. 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)​

  1. 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, in robot-name:secret form, never the value itself. The credential is read when the API process starts.
  2. 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).
  3. Press Probe health. The status must read Healthy, and the Proxy caches cards must list dockerhub and ngc with 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.
  4. 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 with quota_exceeded_registry_workspace. See Quotas and capacity for the registry_gb dimension.
  5. Switch container_registry on 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.
  6. 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 error after 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_registry flag 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​

WhatValueWhere it is set
Registry projects per workspace1, named ws-<workspace id>platform
Default storage quota of a new project50 GB, applied at creation only; later changes go through the operator's quota overrideper deployment
Quota overridea whole number of GB from 1 upwards (invalid_registry_quota otherwise), or unlimited where no frame or pool caps registry_gboperator console
Quota accountingthe 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 dimensionplatform
Credential name1 to 255 characters: lowercase letters and digits with single ., _ or - separators, no leading or trailing separator (invalid_robot_name)platform
Credential accesspull or push_pullplatform
Credential expirynone; robots are created without an expiryplatform
Credentials per workspaceno limit is enforced by the platform in 2.48.6platform
Secret visibilityonce, in the 201 response of the create call and in the dialog built from itplatform
Pull-through projectsdockerhub-proxy and ngc-proxy, publicprovisioning script
Workspace projects listed in the operator consoleup to 200 rows per readplatform

Refresh and background jobs​

WhatValue
Registry page refreshevery 10 s while the project is provisioning; otherwise on page load and after each action
Endpoint health probeevery 5 minutes, also while the flag is off; Probe health runs it at once and refreshes the proxy-cache cards
Stale-state sweepevery 5 minutes: a project provisioning for more than 15 minutes is set to error, after which Retry applies
Lock-out after a failed loginabout 1.5 s per principal on the registry's side; repeated attempts with a wrong credential compound it
First pull through a cachethe repository record appears in the registry a few seconds after the pull completes

Project statuses​

StatusMeaning
provisioningthe row exists, the backend project is being created
activethe backend project exists; credentials can be issued
errorthe 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​

CodeHTTPMeaning
feature_disabled404the container_registry flag is off
registry_project_missing404the workspace has not enabled the registry yet
registry_endpoint_unavailable404 or 400no endpoint is active, or its credential cannot be read
registry_endpoint_active409an operator tried to delete the active endpoint
registry_project_not_ready409credential create while the project is provisioning or in error
robot_name_taken409an active credential with that name exists
robot_revoked409the credential is already revoked
invalid_robot_name, invalid_robot_access400name outside the rule above; access other than pull or push_pull
invalid_registry_quota400a bounded override below 1 GB
quota_exceeded_registry_workspace, ..._account, ..._pool_capacity400the registry quota at that level is reached
quota_frame_missing400the workspace has no quota frame
unlimited_registry_grants_exist409an 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_registry off makes every workspace route and the console's proxy-cache and project sections answer 404 feature_disabled. Nothing is deleted and no credential is revoked: docker pull and docker push talk 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.