Skip to main content

Using private container registries

Nimbus can download component images from a registry that requires a username and password or access token. Configure access on every robot that needs those images, then verify a fresh image download through Agent before restricting production access.

For an existing fleet, confirm with Nimbus support that each installed Agent release supports the registry and credential flow used here. Record the verified Agent release and registry in the deployment procedure; a successful test on one version does not qualify every older version.

Agent release readiness​

Before moving a Docker Hub repository to private, confirm that the installed Agent release uses the saved Nimbus credentials for both Docker Hub tag information and image downloads. Older releases may request tag information anonymously and use only Docker login-file credentials for Hub downloads. A fresh deployment of a private image referenced by a tag can then fail before the download is attempted, even when a terminal docker login succeeds.

If the installed release has this limitation, coordinate an upgrade to a release containing the private Docker Hub authentication fixes before the production cutover. For an urgent migration, Nimbus support can coordinate a qualified hotfix with the development team. Already-running containers and cached images can keep working while a new robot, new image tag, or cleared cache fails; use an uncached private-image deployment to decide whether the release is ready.

For other registry providers, qualify the installed Agent against the actual endpoint and credential flow before deciding whether an upgrade is required.

Prepare the registry and access​

The registry administrator owns repository visibility, account permissions, credential expiry, and revocation. The deployment operator configures the robots and verifies image downloads. Nimbus support helps diagnose Agent compatibility and deployment failures.

Obtain these details from the registry administrator:

  • The registry endpoint and complete image reference, including the tag or digest.
  • A username and credential authorized to download the required images. Use pull-only access for robots where the provider supports it; keep image-publishing credentials separate.
  • The supported OS and architectures of the image, such as Linux amd64 or arm64.
  • Any required proxy, firewall, or certificate-authority configuration.

For Docker Hub, use a provider-supported access token as the password. See Docker access tokens for personal and organization automation options. For GitHub Container Registry, see GitHub authentication and package permissions. Other registry administrators supply the corresponding username/token pair. Providers that use short-lived credentials also need a process to replace them before expiry.

The Docker daemon needs network access to the registry, authentication, and image-download endpoints. Configure its proxy and CA trust separately from Nimbus connection settings. See corporate network setup and Docker registry certificates.

Configure access in Nimbus​

Open the robot's Settings → Docker Registry section and add the credentials:

  • URL: the registry endpoint. Use https://index.docker.io/v1/ for Docker Hub, https://ghcr.io for GitHub Container Registry, or an endpoint such as https://registry.example.com:5000 for a self-hosted registry.
  • Username: the registry account or service-account username.
  • Password: the password or access token supplied for that account.

Keep the image repository path in the component's image reference, rather than the registry URL. For example, registry.example.com:5000/team/component:production uses the registry endpoint https://registry.example.com:5000.

Registry credentials are matched to the registry host and port. Use one current credential entry per registry endpoint. Docker Hub image references such as exampleorg/component:production use the Docker Hub credential entry.

Apply the settings to every target robot. For terminal-based configuration, use the Components Manager registry commands, which document the JSON format, import, export, and status commands.

Nimbus uses a matching saved credential entry for authenticated Docker Hub tag lookups and image pulls. Saved registry credentials take priority over inline credentials from Docker's config.json. If no matching saved entry exists, Agent can fall back to inline Docker credentials available to it; Agent does not invoke external Docker credential helpers. Configure credentials in Nimbus for a predictable deployment, and replace an incorrect saved entry rather than relying on a separate terminal login to override it.

Nimbus stores registry configuration locally. Editing dockerAuths in nimbus.json is a bootstrap/default mechanism; it does not replace registry settings already saved on a robot. Use Settings or the CLI import command for subsequent changes.

Verify a fresh deployment​

A successful docker login or docker pull in a terminal checks that terminal's Docker access. Verify the Agent deployment separately, using the credentials configured in Nimbus.

Use a disposable test robot or isolated Docker environment and an approved test image whose content is not already present locally. A new tag for an existing local image may still reuse cached content. Nimbus can also reuse a valid local image while registry access is unavailable, so a cached deployment does not establish that private downloads work.

  1. Confirm the test image is private and an unauthenticated request cannot download it.
  2. Configure valid credentials in Nimbus and deploy the component through the normal component deployment workflow. Confirm that Agent downloads the image and the component starts with its expected behavior.
  3. On the disposable environment, verify that missing or incorrect credentials prevent a fresh private-image download. Restore the valid settings after this check.
  4. Restart Agent during the test window and repeat a fresh download to confirm that the saved credentials remain usable.

On Agent releases with installation-retry support, also verify recovery on the same component: after an invalid-credential installation fails, correct the saved credentials and select Start again. The component should retry installation and become active. Another unsuccessful attempt should report failure and leave the component available for a later retry. Saving new credentials alone does not start the component. Use this check on the disposable environment before rollout.

Keep the Agent release, exact image tag/digest, architecture, and deployment result with the test record. Remove only test resources created for this verification.

Change an existing repository from public to private​

Coordinate the cutover with the registry administrator and deployment operators:

  1. Inventory the affected image references, robots, Agent releases, build pipelines, and other consumers. Include future installations and recovery deployments.
  2. Create the required credentials and distribute them to robots and pipelines through their normal configuration procedures.
  3. Verify the same deployment path against a private test repository with uncached image content. A public repository can still succeed anonymously even when configured credentials are wrong.
  4. Agree the cutover time and recovery procedure, then have the administrator change repository visibility. For Docker Hub, see repository access management.
  5. Verify fresh downloads from the production repository on a controlled target before proceeding with the wider rollout. Confirm publishing pipelines still work with their own credentials.

Running containers and copies already downloaded remain on their hosts. Plan for the next image download, update, new robot installation, and recovery operation when qualifying the change.

Replace credentials​

Create a replacement credential with the required access before the old one expires. Save the replacement in Nimbus on the affected robots and update the corresponding pipeline settings. Verify fresh authenticated downloads, then revoke the old credential once all intended consumers have moved to the replacement.

Registry configuration files and CLI exports contain password/token values. Store and transfer them through the deployment's protected credential-handling process. The CLI status display masks the password; its output does not prove that the registry accepted the credential.

Troubleshoot downloads​

  • Access denied or image reported missing: check the registry endpoint, account access to the repository, token permissions and expiry, and the exact image tag. Private repositories can hide existence from unauthorized clients.
  • Terminal access works but Agent fails: check the settings saved in Nimbus and the installed Agent release. A login stored for another user, or in a Docker credential helper, is not a substitute for configuring Nimbus credentials.
  • Certificate, proxy, DNS, or connection errors: check the Docker daemon's network and trust configuration as well as the registry's authentication and download endpoints.
  • Wrong architecture or startup failure: verify that the image provides the robot's OS and architecture and that its runtime requirements are met. Successful authentication alone does not establish that the component can run.
  • A deployment succeeds after credentials were removed: inspect whether Agent reused a local image or found matching inline Docker credentials. Repeat the authentication check in the disposable environment with uncached image content and no configured or fallback credentials.

When contacting support, include the verified Agent release, image reference/digest, architecture, failure time, and redacted deployment logs. Keep password/token values out of the report.