Downloads into a remote's cache
Store versions in a remote repository's cache before a client asks, keep packages in sync, and follow the download queue.
On this page
Download ahead from the tab Upstream
- Who
- Maintainers, Owners and administrators; a reader who may fetch a version downloads that one alone
- Formats
- npm, NuGet, OCI, Debian, Ansible Galaxy
On the tab Upstream (Curating a remote repository):
| Control | What it stores |
|---|---|
| Download at a version | That version, charged to your download budget |
| Download for examination | A version the repository does not deliver: stored and scanned, not served. Discard removes it |
| Download every version… of a package | The versions of a range: From version, Up to version (included or below it), Include pre-releases, At most this many versions |
| Download this sub-section… of a level | The packages of a Debian architecture, an npm scope of the public registry, or an image or Galaxy namespace |
Both bulk downloads open a preview of versions and bytes, what is stored already and what is not delivered, with bounds you may lower.
Versions compare in the format's own order; a tag that names no version, such as latest, lies outside every range.
Every download is a row of the repository's queue. One you start of a delivered version is charged to you; the rest is system work.
What the rules do not deliver is kept for examination and removed after the repository's days (30 unless changed), or at once on a
decline or Discard. Through the API: POST …/downloads (Management API).
Keep in sync
The preview also offers Keep in sync beside Once: Quader downloads what the bounds take now, then what is new at every interval of the repository. Keep this many of the newest versions and At most this many GiB bound it. A sync stores only delivered versions and removes nothing. An image's tag the publisher moved is downloaded again; the earlier image stays.
The closed section Kept in sync of the settings (#syncs) holds what applies to every sync of the repository:
| Setting | Default |
|---|---|
| Run every this many minutes | 60; 5 minutes to 30 days |
| Pause every sync of this repository | off |
| Stop at this many GiB stored | empty: no bound |
A repository keeps at most 100 syncs (proxy.downloads).
Downloads a client only asked about
A client that asks about exactly one version without downloading it is likely to pull it next, so the remote downloads that version in the background:
| Format | The request | What is downloaded |
|---|---|---|
| OCI | A tag's manifest (docker manifest inspect, crane digest), a HEAD of a manifest by digest |
The image, with the platforms of Platforms |
| OCI | A HEAD of a blob |
The blob |
| npm | The document of one version, a HEAD of a tarball |
The tarball |
| NuGet | A version's registration leaf or .nuspec, a HEAD of the .nupkg |
The .nupkg |
| Ansible Galaxy | A collection's version document, a HEAD of a collection's or a role's archive |
The archive |
| Debian | A HEAD of a package file |
The package file |
A request for a whole package (npm install, dotnet restore, apt-get) starts nothing. The download is charged to the client that
asked and runs in the queue with the origin Probe. Untick Start the download when a version is asked for for an upstream that
counts every request: Docker Hub counts each manifest download as a pull. Through a virtual repository, the remote member that serves the
version downloads it, under its own settings.
The tab Downloads
| Part | What it shows |
|---|---|
| All, Waiting, Running, Failed, Done; Failure | The rows of a state, or of one kind of failure such as TLS |
| A row | Package and version; origin (You, a person, Request, Allow, Bulk, Sync, Probe, Client for a client's failed fetch); state with the attempt; files and bytes; the failure in one line |
| A row opened | Quader's sentence of what failed and what helps, the step, the code, the address without its query, the upstream's status and the start of its answer |
| Kept in sync | Each sync with its range, last run and next run; Run now, Pause, Remove… |
| Bulk downloads | Each bulk with its state (Finding versions, Queued, Done, Stopped at a bound, Cancelled, Failed); Start again, Cancel |
Retry and Cancel act on your own rows, on the rows of probes and clients for a version you could fetch, and on every row for Maintainers, Owners and administrators, who also get Retry all failed. A sync is not edited: remove it and set it up again.
When an upstream limits requests, a line above the list says who limits and when the downloads go on. Nothing starts before that time,
and waiting counts as no failed attempt. Where the registry allows more with an account, the line says who can add one. The tab reads
the queue again every five seconds while something waits or runs, else every 30 seconds. Done and cancelled rows leave after seven days, failed ones after 30
(proxy.downloads).