Skip to Content

Registry mirrors

Copy a repository's tags from Docker Hub, GHCR, Quay or another registry into your A-Line.cloud registry, or push your images out to another registry, on a schedule or by hand.

Goal: keep a copy of another registry's repository in yours (a pull mirror), or keep another registry in step with one of your repositories (a push mirror). For example, mirror ghcr.io/acme/tool into registry.a-line.cloud/<org>/production/tool.

A pull-through cache fetches images the first time someone pulls them. A mirror copies tags ahead of time and can also send your images out.

Add a mirror

Open Registry, then Mirrors, and click Add mirror (org owners and admins).

Fill in:

  • Direction: Pull copies from the remote into your registry. Push copies from your registry to the remote.
  • Remote registry: a host such as docker.io or ghcr.io, or a full https://host[:port] address. Only public addresses are allowed, and an A-Line.cloud registry can't be the remote (use promotion between environments instead).
  • Remote repository: the path at the remote, such as library/nginx.
  • Repository here: the path in your registry, relative to your organization, usually starting with an environment (production/nginx).
  • Credential: none, or one of your external registry credentials for the same host. Push mirrors need a login that may push.
  • Tags: up to 20 glob patterns separated by commas, such as v1.*, latest. * copies every tag.
  • Tags per run: how many of the matching tags each run copies, at most 1000 (default 100). These are the last ones in name order, because registries don't report when a tag was pushed. Name order is plain text order, so v1.10 comes before v1.9.
  • Sync interval: 15 to 10080 minutes, or empty to sync only by hand.
  • Copy signatures and attestations: also copy each image's cosign signature, attestation and SBOM tags (sha256-<digest>.sig, .att, .sbom) and the OCI referrers that point at it.

Click Test on the mirror to check that the remote answers with its login.

Click Sync now to queue a run. The worker starts it within a minute. A mirror that is already running or queued can't be queued again.

What a run does

  • Each selected tag is copied byte for byte, so digests and signatures stay valid. Multi-platform images are copied with every platform.
  • A tag that already points at the same digest on the other side is skipped.
  • A tag that points at a different digest is updated. The run's status counts these as "moved".
  • Nothing is ever deleted. Tags removed at the source stay in the copy.
  • Pull mirrors write into your registry as normal pushes. Registry events, deploy triggers and protected tags apply as for a docker push.

A run stops after 30 minutes or 20 GiB, whichever comes first. The next run continues with the tags that are left. Each mirror shows its last run: when it ran, how many tags it copied and why it stopped, if it did.

Limits and storage

  • Pulled images count toward your registry storage. When a quota blocks pushes, a pull mirror stops before the first image that wouldn't fit and says so in its status. Raise the quota or free space, and the next run continues.
  • Without a credential, Docker Hub pull mirrors use the same platform account and rate limits as the pull-through cache. When the limit is reached the run stops and the next run continues. Add your own Docker Hub login when you mirror a lot.
  • A credential used by a mirror can't be deleted until the mirror stops using it.
  • Members can see mirrors and their status. Only owners and admins can add, change, test, sync or delete them.

API and MCP

The same mirrors are under /v1/registry/mirrors in the API (with /sync and /test actions), and the MCP tool list_registry_mirrors lists them.

On this page