On a CI/CD pipeline, a large share of the build time goes into downloading
dependencies: Docker images, NPM packages, Go modules. Every docker pull or
npm install hits the same registries, over and over.
Varnish Orca solves this problem by placing a cache between your tools
and the registries: it keeps a copy of what it has already downloaded and
returns it to the following requests. On the dated measurements of this page,
the second docker pull of the same image was about 2 to 4 times faster: 1.39 s
instead of 2.97 s with localhost, then 0.72 s instead of 2.98 s with the
<ip>:80 address. These two series come from two campaigns on two VMs, with a
single measurement each. This page is for readers who already know how to start
a container with Docker. It shows how to install Orca, connect it to Docker,
npm, Go and Helm, then run it in production and troubleshoot it.
What you will learn
- Install Orca with Docker
- Configure Docker to use Orca as a Docker Hub mirror
- Connect npm, Go and Helm to Orca's subdomains
- Add registries (Quay, GHCR, PyPI, a private registry) in a
config.yaml - Measure the performance gain on your pulls
- Prepare for production (TLS, observability), configurations that were not run
- Troubleshoot a startup or a pull that fails, and check that the cache is serving
What is Varnish Orca?
The problem: the same artifacts downloaded again and again
Take a team of 10 developers. Each one runs 5 builds a day. Each build downloads the same dependencies:
- An application base image (in the order of 50 MB)
- 200 NPM packages (100 MB)
- A few base images (200 MB)
The arithmetic is quick: 10 developers × 5 builds × 350 MB give 17.5 GB per day, or 350 GB per month over 20 working days, all downloaded from the Internet. These figures illustrate an imaginary case, not a measurement. Above all, they are almost always the same files.
Your pipelines therefore download again artifacts they already fetched the day before, an hour earlier, or even 5 minutes ago on another runner (the machine that executes the pipeline).
The solution: a Virtual Registry Manager
Orca acts as a caching proxy: an intermediary that receives the requests of
your tools, forwards them to the remote registries and keeps the responses.
Here is what happens when your CI pulls an image. The @sha256:… at the end of
the reference is the digest, the content hash that identifies an image
uniquely, unlike a tag, which can be republished.
- Your CI runs
docker pull alpine:3.22@sha256:2e0b81d60597f449baa56dc25d355367869d2dca4cd57e866f1e2b52af3eb55f. - Orca receives the request, as if it were Docker Hub.
- If the image is not in the cache (a miss), Orca downloads it from Docker Hub, stores it and sends it back to you.
- If the image is already in the cache (a hit), Orca sends it back without going to the Internet (see the measurement below).
| Without Orca | With Orca |
|---|---|
| Every build pulls from Docker Hub | The first build pulls, the following ones are served from the cache |
| Network latency on every pull | Local network latency |
| Depends on the availability of Docker Hub | Can serve a pull by digest already in the cache during an outage, with limits (see "What happens when Docker Hub goes down?") |
| Outbound traffic billed (egress) on every download | Outbound traffic avoided on every cache hit |
Supported artifacts
Orca mostly caches immutable binary artifacts: an image layer or a package
version, once published, no longer changes, so the cached response stays valid.
Floating tags, on the other hand, can change: that is the reason for the TTL
(the time a response is kept) that "Advanced configuration" lets you tune. The
table below matches the configuration shipped in the image, checked in
/etc/varnish-supervisor/default.yaml. The right-hand column is the one you
care about day to day: it is the host name to write in your commands to target
a given upstream registry. No PyPI entry is provided by default: you have
to add it in a config.yaml.
| Type | Default registry | Orca subdomain |
|---|---|---|
| Docker/OCI images | Docker Hub | dockerhub.localhost |
| Docker images | Quay.io | quay.localhost |
| Docker images | GitHub Container Registry | ghcr.localhost |
| Kubernetes images | registry.k8s.io | k8s.localhost |
| NPM packages | registry.npmjs.org | npmjs.localhost |
| Go modules | proxy.golang.org | go.localhost |
| Git repositories | github.com | github.localhost |
| Git repositories | gitlab.com | gitlab.localhost |
Prerequisites
- Docker installed (the measurements of this page come from Docker Engine 29.9.2, the reference version)
- Root access to edit
/etc/docker/daemon.json - Port 80 or 8888 available on the host machine
How do you install Orca?
Orca can be installed in four ways. The first one, with Docker, is enough to try it out. The other three keep it running: Compose for a single host, Helm for a cluster, packages for a machine without containers.
Option 1: Docker (recommended to get started)
This is the shortest path for a first evaluation: nothing to configure, the
public registries are already declared. Allow 9 to 14 seconds between
launch and the first 200 response from /healthz (13.25, 13.53 and 10.55 s
measured with docker run, 9.33 s with Compose, image already downloaded).
During this time, Orca loads nine VCL groups, the configuration language of
Varnish that Orca's YAML spares you from writing. There is one for each
default registry (dockerhub, quay, ghcr, k8s, npmjs, go, github, gitlab), plus
root, which handles routing. As long as the message
Varnish is ready to receive traffic does not appear in the logs, curl fails
without any HTTP response: it prints
curl: (56) Recv failure: Connection reset by peer and returns exit code 56.
This is not a configuration defect: wait for that message in docker logs orca,
then run the curl again.
-
Download the Orca image
Terminal window docker pull varnish/orca:0.20.0@sha256:918e9839eaf13a5f7c2a3b3cbfaf0527f3344ab4dad1d891dd387b09a4d668b5 -
Start Orca
Terminal window docker run -d --rm \-p 80:80 \--name orca \varnish/orca:0.20.0@sha256:918e9839eaf13a5f7c2a3b3cbfaf0527f3344ab4dad1d891dd387b09a4d668b5 -
Check that Orca responds
Terminal window curl -I http://localhost/healthzYou should get
HTTP/1.1 200 OK.
This command publishes port 80 on all the interfaces of the machine. Before using it anywhere other than a test workstation, read the warning in the section From another machine.
Option 2: Docker Compose
Switch to Compose as soon as Orca has to restart with the machine or carry a
custom configuration. Three elements are added to the previous command. The
image is pinned by its digest, because the 0.20.0 tag alone could be
republished. restart: unless-stopped restarts the container when the Docker
daemon starts, but a cache without persistent storage then starts empty again
(see "Persistent disk storage"). Finally, the read-only mount (:ro) protects
your config.yaml from being rewritten by the container. This file must exist
before docker compose up (see "Advanced configuration").
services: orca: image: varnish/orca:0.20.0@sha256:918e9839eaf13a5f7c2a3b3cbfaf0527f3344ab4dad1d891dd387b09a4d668b5 ports: - "80:80" volumes: - ./config.yaml:/etc/varnish-supervisor/default.yaml:ro restart: unless-stoppedThis configuration was run with the config.yaml from "Advanced
configuration": docker compose config -q and docker compose up -d return 0,
/healthz answers 200 after 9.33 s, the container shows
restart=unless-stopped and the mount is read-only. The container name depends
on the folder of the Compose project (here compose-orca-1).
The "80:80" port of this file is also published on all the interfaces. Here
again, the warning in the section From another machine
applies.
Option 3: Helm (Kubernetes)
In a cluster, the cache goes as close as possible to the runners: one Orca per
zone or per cluster is enough, and the nodes reach it through an internal
Service. The chart (the Helm package) is stored like an image in Docker Hub, in
OCI format (Open Container Initiative, the standard for container images
and artifacts), and not in a classic Helm repository: the URL starts with
oci:// and no helm repo add command is needed. This method was not run for
this page: look up the chart version with
helm show chart oci://docker.io/varnish/orca-chart before installing it.
helm install accepts the oci:// URL directly and downloads the chart
itself, so a prior helm pull would be redundant.
helm install orca oci://docker.io/varnish/orca-chartOption 4: Linux packages
Installing from a package suits a dedicated host, outside any container, with a
systemd unit and logs in the system journal. The installed binary is called
varnish-supervisor: that is the name of the component, Orca being the
commercial name of the distribution. The repository is hosted on
packagecloud and is set up with a script provided by the vendor, which you
download and read before running it rather than piping it straight into
bash.
On Debian 13, this method was run without a subscription: the
varnishplus/60-enterprise repository is public, apt-get update succeeds,
the candidate is version 0.20.0 and the installation also pulls varnish-plus
6.0.18r6. The varnish-supervisor service is already enabled and started at
the end of the installation, and /healthz answers 200. On RHEL and its
derivatives, only the rpm script was downloaded (200 response): the
installation was not run.
# Add the repository: download the script, inspect it, then run itcurl -s https://packagecloud.io/install/repositories/varnishplus/60-enterprise/script.deb.sh -o varnish-repo.shless varnish-repo.shsudo bash varnish-repo.sh
# Installsudo apt -y install varnish-supervisor
# Check the version, then the state of the service (already enabled and started by the package)varnish-supervisor --versionsystemctl is-active varnish-supervisor# Add the repository: download the script, inspect it, then run itcurl -s https://packagecloud.io/install/repositories/varnishplus/60-enterprise/script.rpm.sh -o varnish-repo.shless varnish-repo.shsudo bash varnish-repo.sh
# Installsudo dnf -y install varnish-supervisor
# Check the version, then the state of the service (not run on RHEL: if the# service is inactive, enable it with systemctl enable --now)varnish-supervisor --versionsystemctl is-active varnish-supervisorConfiguring Docker to use Orca
A registry mirror is a registry that Docker queries before Docker Hub: if it already has the image, it serves it, otherwise it fetches it upstream. For Orca to play this role, declare it in the configuration of the Docker daemon. The details of this file are in Configure the Docker daemon.
-
Edit
/etc/docker/daemon.json/etc/docker/daemon.json {"registry-mirrors": ["http://localhost"]} -
Restart Docker
Terminal window sudo systemctl restart docker -
Check the configuration
Terminal window docker info | grep -A2 "Registry Mirrors"You should see
http://localhost/.
A mirror declared in registry-mirrors does not need insecure-registries to
be served over HTTP. Measured on Docker 29.9.2, containerd store, with Orca
0.20.0 reached through a non-loopback IP address (http://<ip>:80): the
docker pull returns code 0 and varnishstat (the tool that displays the
Varnish counters, run inside the container) shows that the mirror is serving,
without any insecure-registries entry.
A successful pull does not prove on its own that it went through Orca: check
that MAIN.cache_hit increases (see "Check that the cache works" further
down). The insecure-registries declaration concerns another case, the direct
pull to Orca, and it did not give a reliable result there (see the
troubleshooting table).
If Orca listens on port 8888 (-p 8888:80), write
"registry-mirrors": ["http://localhost:8888"], and add :8888 to the
subdomains of the other clients (http://npmjs.localhost:8888).
From another machine
A cache shared between runners assumes that the runners reach Orca over the
network, not through localhost. For the Docker mirror, replace localhost
with the address of the machine that hosts Orca: "registry-mirrors": ["http://<ip>:80"]. This form was measured: the pull succeeds and
varnishstat shows that the cache is serving. This measurement was made from
Orca's own host, through its non-loopback address (10.10.94.11): from another
host, only the network path changes, but that case was not run. For npm, Go and
Helm, the *.localhost names only designate the local machine. You then need a
wildcard DNS name such as *.orca.<your domain> that points to Orca (for
example npmjs.orca.<your domain>). This setup was not run for this page:
check it on your side before relying on it.
On the security side, -p 80:80 exposes an unauthenticated HTTP proxy on all
interfaces, and a port published by Docker bypasses ufw rules. The lesson
Publish a Docker port without exposing the whole host
measures this and explains the DOCKER-USER chain. Filter access with an
upstream firewall or with rules in this chain, which the default iptables
engine processes before Docker's rules (Docker, Packet filtering and firewalls
with iptables,
accessed on 2026-11-04). You can also publish on a specific interface, for
example -p <ip>:80:80. In that case, localhost and the *.localhost names,
resolved to loopback addresses (::1 for the *.localhost names on Debian 13),
no longer reach Orca from the host. For the Docker mirror, use http://<ip>:80
then. For npm, Go and Helm, an address alone is not enough: Orca picks the
registry from the Host header, and a client pointed at http://<ip> falls
back to Docker Hub. You need a name that carries the subdomain and resolves to
<ip>, either a wildcard DNS, as described earlier in this section, or one
/etc/hosts entry per subdomain (for example <ip> npmjs.localhost). This
last setup was not run for this page.
The nftables engine of Docker 29 has no DOCKER-USER chain and remains
experimental (Docker, Packet filtering and firewalls with
nftables, accessed
on 2026-11-04). If you have enabled it, the rules above do not apply as they
stand.
How do you use Orca with Docker, npm, Go and Helm?
Each tool connects to Orca differently. Docker goes through the mirror configured above, while npm, Go and Helm target an Orca subdomain.
Docker Hub cache (automatic)
With the registry mirror configured, your Docker Hub image pulls go through Orca automatically. No change to your Dockerfiles or scripts is needed.
registry-mirrors only concerns Docker Hub. A docker pull quay.io/… or
docker pull ghcr.io/… succeeds, but it bypasses Orca: on the 2026-11-04
measurement, varnishstat stayed still during these two pulls. For the other
image registries, a direct Docker pull through quay.localhost or
ghcr.localhost fails without TLS (see the troubleshooting table).
To see the difference, pull the same image twice, deleting the local copy in between:
# Step 1: First pull (Orca downloads from Docker Hub)docker pull alpine:3.22@sha256:2e0b81d60597f449baa56dc25d355367869d2dca4cd57e866f1e2b52af3eb55f# → Orca does not have the image, it fetches it from the Internet
# Step 2: Delete the image from your machinedocker image rm alpine:3.22@sha256:2e0b81d60597f449baa56dc25d355367869d2dca4cd57e866f1e2b52af3eb55f# → The image is no longer on YOUR machine, but Orca kept it
# Step 3: Second pull (Orca serves from its cache)docker pull alpine:3.22@sha256:2e0b81d60597f449baa56dc25d355367869d2dca4cd57e866f1e2b52af3eb55f# → This time, Orca answers from its cacheHere is what this sequence gave on 2026-11-04 (Debian 13, Docker Engine 29.9.2,
containerd store, Orca 0.20.0 declared in registry-mirrors over HTTP). The
two columns come from two campaigns on two VMs: the recipe of this page
(http://localhost) was measured on a 2 vCPU VM, and the mirror reached through
a non-loopback address (http://<ip>:80) on another VM, whose vCPU count was
not recorded.
| Pull | http://localhost | http://<ip>:80 | What happens |
|---|---|---|---|
| First | 2.971 s | 2.98 s | Orca downloads from Docker Hub and stores it in the cache |
Second, after docker image rm | 1.392 s | 0.72 s | Orca serves the image from its local cache |
With the localhost recipe, the MAIN.cache_hit counter of varnishstat went
from 0 to 9 between the two pulls: it is what proves that the second pull was
served by the cache. Each duration comes from a single measurement, and the two
series come from different machines: the gap between them cannot be attributed
to the mirror configuration. The gain is about 2 times in the first campaign
and about 4 times in the second. Take this range of 2 to 4 times as a gap
observed between two single measurements, not as a fixed figure, and measure it
on your own setup.
NPM cache
Docker automatically uses the registry mirror configured for Docker Hub, but
npm has to be pointed at Orca explicitly. The commands of this section were run
with Node 26.13.0 and npm 11.20.0: npm install express returned code 0 and
made Orca's counters increase. It was only run once, with cache_hit at 0
throughout: there were only misses, and the passage through the cache was not
measured. A second npm install would prove nothing as long as npm's local
~/.npm cache serves it instead of Orca, except after
npm cache clean --force.
For a single npm install, pass the registry as an option:
npm install express --registry=http://npmjs.localhostFor all the npm install runs of the machine or of the runner, which suits
CI/CD, change the global configuration:
npm config set registry http://npmjs.localhostGo modules cache
The Go client reads the GOPROXY environment variable to know where to look for
modules. Pointing it at Orca is enough, no configuration file has to be edited
(measured with Go 1.27.3: go mod tidy downloads github.com/google/uuid
v1.6.0 through Orca). This download was only run once, with cache_hit at 0:
the passage through the cache was not measured.
GOPROXY accepts a list of sources, and the separator changes the fallback
behaviour. With a comma, Go only moves on to the next source on a 404 or 410
response. With a vertical bar, it falls back on any error, including a timeout.
For a build to survive an Orca restart, write GOPROXY=http://go.localhost|direct.
# For one commandGOPROXY='http://go.localhost|direct' go mod tidy
# Or export it in your shell profileexport GOPROXY='http://go.localhost|direct'The single quotes are required: without them, the shell reads the vertical bar
as a pipe. The measurement quoted above was made with GOPROXY=http://go.localhost
alone; the |direct variant applies Go's fallback rule, but it was not run
again.
Helm charts cache (OCI)
Helm 3.8+ supports OCI registries. Use the matching subdomain (measured with Helm 4.3.1):
# Chart from GitHub Container Registry through Orcahelm pull oci://ghcr.localhost/prometheus-community/charts/prometheus --version 29.40.3 --plain-httpThe measured command did not carry --version: the version served was 29.40.3,
and the option is added here to pin the chart, without the command with the
option having been run. This download was only run once, with cache_hit at 0:
the passage through the cache was not measured.
Orca's own chart (oci://docker.io/varnish/orca-chart, option 3) has no
verified version: pin the one that helm show chart gives you.
PyPI cache (pip)
pip is pointed at Orca like npm, but Orca declares no PyPI registry by default:
you first have to add the pypi entry of the config.yaml from "Advanced
configuration". With this file, the following command returned code 0 and
downloaded requests-2.32.3 (pip 25.1.1, Python 3.13). Orca rewrites the links
of PyPI's HTML, and the file is served by pypi.localhost.
pip3 download requests==2.32.3 --no-deps \ --index-url http://pypi.localhost/simple \ --trusted-host pypi.localhostThe --trusted-host option is needed because the server answers over HTTP.
Only one download was run, so a miss: the cache hit for pip was not measured.
Advanced configuration
Orca's default configuration already includes the eight registries of the table of supported artifacts. You have nothing to configure to get started.
Create a custom config.yaml only if you need to:
- Add a company private registry
- Tune cache retention times (TTL, for time to live)
- Enable high availability with several remotes
varnish: http: - port: 80
virtual_registry: registries: # Docker Hub as the default registry - name: dockerhub default: true remotes: - url: https://docker.io - url: https://mirror.gcr.io # Fallback to the Google mirror
# GitHub Container Registry - name: ghcr remotes: - url: https://ghcr.io
# Quay.io - name: quay remotes: - url: https://quay.io
# NPM - name: npmjs remotes: - url: https://registry.npmjs.org
# PyPI - name: pypi remotes: - url: https://pypi.org
# Company private registry - name: internal remotes: - url: https://registry.entreprise.localMount this file in the container:
docker run -d --rm \ -p 80:80 \ --name orca \ -v $(pwd)/config.yaml:/etc/varnish-supervisor/default.yaml:ro \ varnish/orca:0.20.0@sha256:918e9839eaf13a5f7c2a3b3cbfaf0527f3344ab4dad1d891dd387b09a4d668b5This file replaces the default configuration, it does not complete it.
Mounted as is, it only loads dockerhub, ghcr, quay, npmjs, pypi, internal and
root (seven VCL groups). The go, k8s, github and gitlab registries are no
longer declared. Their subdomains do not return 404: they fall back to the
default registry, Docker Hub. Measured with Orca 0.20.0:
go.localhost/github.com/google/uuid/@v/list returns 200, but with an HTML
page from Docker Hub, not a list of module versions. The GOPROXY of the
previous section therefore does not work with this file. If you need them, copy
their entries into your config.yaml.
The internal registry of the example points to registry.entreprise.local,
which does not exist on your side: it answers 503 until you replace it.
The file must exist before the docker run. If it is missing, Docker creates a
directory in its place and the startup fails with the error not a directory
(observed in an earlier test campaign).
Per-registry configuration options
These five keys go at the level of an entry of registries, not at the global
level. Two deserve particular attention: default: true must appear on only
one registry, the one that will answer requests arriving without a host
prefix. The default_ttl option sets the TTL of objects without an explicit
policy, and its default value is not established. Without an explicit TTL, Orca
falls back on default_ttl, according to a comment in the VCL shipped in the
varnish-supervisor 0.20.0 binary. The fallback example below uses 120
seconds. Orca 0.20.0's validation recognizes the key: set it yourself if it
matters to you.
| Option | Default | Description |
|---|---|---|
name | - | Unique identifier, used for subdomain routing |
default | false | If true, receives requests without a subdomain |
load_balancer | fallback | Strategy: fallback, random, or hash |
default_ttl | not established | TTL in seconds of objects without an explicit policy (120 in the fallback example) |
auth_ttl | 3600 | TTL of the authorization cache (sup-auth licence addon), help string of varnish-supervisor 0.20.0 read with strings on the binary |
Remotes with fallback
A registry can have several remotes, that is, several upstream registry
URLs, to stay available if one of them goes down. priority is 1 by default
and a lower value means a higher priority. The priority, load_balancer and
default_ttl keys of this section, as well as probe in the next section,
were validated by varnish-supervisor -validate -config (code 0,
configuration is valid), and an unknown load_balancer value is rejected
with invalid load_balancer "bogus" (valid: random, fallback, hash). This
validation is syntactic: the fallback behaviour was not measured.
- name: dockerhub default: true load_balancer: fallback default_ttl: 120 # TTL of objects without an explicit policy remotes: - url: https://docker.io priority: 1 # Tried first - url: https://mirror.gcr.io priority: 2 # Fallback if Docker Hub failsRemote health checks
Without a probe, Orca only discovers that a remote is dead when a real request
fails, and your build pays for the wait. The probe periodically queries a
lightweight path, here /v2/, the root of the OCI distribution API. The
parameters are read together: threshold out of window defines the decision
rule: in the example, 3 successes out of the last 8 attempts to be declared
healthy. The interval and the timeout are expressed in seconds. A probe
without a url, even an empty one, creates no probe:
docker exec orca varnishadm backend.list -p '*.*' prints
Healthy (no probe). The '*.*' pattern is required, because '*' returns an
empty list. With the url alone, Orca 0.20.0 applies threshold: 3 and
window: 8 (read on 2026-11-04 with the same command) and moves the window
forward about every 5 seconds; the 2-second timeout was not observed. The
varnish-supervisor -defaults command prints 0 for these fields, which is not
the applied value. A threshold that is too low switches traffic at the slightest
network hiccup, a threshold that is too high delays the switch to the fallback.
The expected_response field gives the HTTP code the probe expects. For Docker
Hub, it is essential. On the registry API host, a
GET https://registry-1.docker.io/v2/ without a token receives a 401
(www-authenticate: Bearer realm="https://auth.docker.io/token"), and this 401
proves that the registry is answering. The URL of the website,
https://docker.io/v2/, is no reference: it answers with a 302 redirect to
www.docker.com. Measured on 2026-11-04 with Orca 0.20.0, without
expected_response, the https://docker.io remote goes from Healthy 3/8 to
Sick 2/8 about 30 seconds after startup, then to Sick 0/8. Healthy and
Sick are the two states of a remote, followed by the number of successes over
the window of 8 attempts. The initial 3/8 is the starting state assigned at
startup: no probe has succeeded yet.
A Sick remote is no longer served: a curl http://localhost/v2/ and a
manifest request through Orca then receive a 503 Service Unavailable.
With expected_response: 401, the same remote rises to Healthy 8/8 from 25
seconds on and stays Healthy during the 80 seconds of observation. The default
value of this field is 0 in varnish-supervisor -defaults, and the
configuration remains valid with or without it (configuration is valid). For
another registry, first read the real code of its /v2/, on the registry API
host and not on the URL of its website:
curl -sS -o /dev/null -w '%{http_code}\n' https://<registry>/v2/The complete example, with the setting that keeps Docker Hub healthy:
- name: dockerhub remotes: - url: https://docker.io probe: url: /v2/ interval: 5 # Check every 5 seconds timeout: 2 # Timeout of 2 seconds threshold: 3 # 3 successes required to be "healthy" window: 8 # Over the last 8 checks expected_response: 401 # Docker Hub answers 401 on /v2/ without a tokenHow do you deploy Orca in production?
For production, three topics matter: encrypting exchanges with TLS, measuring the hit rate, and deciding whether the cache must survive a restart.
Enable TLS (HTTPS)
In production, always use HTTPS: without encryption, the authentication tokens that your clients send to private registries travel in clear over the network. Orca terminates TLS itself, no additional reverse proxy is required. Choose the tab that matches your context: provided certificates from your internal PKI, a Let's Encrypt certificate obtained automatically through ACME (the automatic issuance protocol of Let's Encrypt) if the service is reachable from the Internet, or a self-signed certificate reserved for local tests. These three configurations were not run for this page.
A wildcard certificate such as *.orca.entreprise.com requires, at Let's
Encrypt, the DNS-01 challenge (Let's Encrypt FAQ,
accessed on 2026-11-04). Orca's documentation on ACME only describes the HTTP-01
challenge and says nothing about wildcards: the example in the Let's Encrypt tab
therefore sticks to specific names, and the wildcard is not demonstrated with
Orca.
varnish: http: - port: 80 https: - port: 443 certificates: - cert: /certs/tls.crt private_key: /certs/tls.keyvarnish: https: - port: 443
acme: email: admin@entreprise.com domains: - orca.entreprise.com - npmjs.orca.entreprise.com ca_server: productionvarnish: https: - port: 443 certificates: - self_signed: "*.localhost"Observability with OpenTelemetry
A cache without measurement proves nothing. The metric that decides everything
is the hit rate, the share of requests served by the cache: if it stays
low, your cache works for nothing and you have to find out why, often floating
tags or a TTL that is too short. The measured way to follow the cache is
varnishstat (see "Check that the cache works"). According to the
Varnish documentation
accessed on 2026-11-04, Orca can also export metrics in OpenTelemetry, which
would let you send them to Prometheus through its OTLP entry point. This
configuration was not run for this page.
Prometheus' OTLP receiver is disabled by default: it is enabled at Prometheus
startup with the --web.enable-otlp-receiver option, and receives metrics on
the /api/v1/otlp/v1/metrics path (Prometheus OpenTelemetry guide,
accessed on 2026-11-04). This option dates from Prometheus 3.x: it replaces
--enable-feature=otlp-write-receiver, which you must keep on the 2.x branch
(Prometheus CHANGELOG,
entry 3.0.0, accessed on 2026-11-04). According to Orca's Metrics page,
accessed the same day, the export carries over the Varnish counters, for example
MAIN.cache_hit under the name varnish.main.cache.hits, breaks down bytes by
package type with the varnish.accounting.* metrics and groups counters by
backend. The page names no latency metric.
otel: service_name: orca-production metrics: endpoint: http://prometheus:9090/api/v1/otlp/v1/metrics protocol: http/protobuf export_interval: 60Persistent disk storage
By default, the cache lives in memory and is lost on restart. The following
configuration declares disk storage. According to the
Varnish documentation
accessed on 2026-11-04, a cache that survives a restart falls under the
sup-persistence licence addon. This feature was not measured here.
varnish: storage: stores: - name: disk1 path: /var/cache/orca/disk1 size: 100GWhat do you do when Orca or a pull fails?
Symptoms fall into two families: Orca does not start, or a Docker client does not get its image. In both cases, look first at the container logs and the Varnish counters.
Orca does not start
Always start with docker logs orca: Orca announces its version (Supervisor
0.20.0, varnish-plus-6.0.18r6, Artifact Firewall 0.8.0) and the expiry of its
licence in the first lines. The table below lists three situations met at
startup, and only the first one really prevents Orca from starting. A container
that stays alive but does not answer is rather a matter of VCL loading time,
described earlier.
| Symptom | Cause | Solution |
|---|---|---|
| Port 80 in use | Another service (nginx, apache) | Use -p 8888:80 or stop the service |
mlock() failed | Locked memory limit | Harmless warning, Orca works anyway |
level=ERROR … vcl.discard vizier_probe … Cannot discard active VCL program | Message emitted at every startup of 0.20.0 in our tests; the Varnish is ready to receive traffic line appears a few seconds later | No action: the container answers normally afterwards |
Docker pull fails through Orca
These errors come from the Docker client, not from Orca: the message you read
describes what Docker understood, not what really happened on the cache side.
The useful reflex is therefore to compare the two logs, the one from docker
and the one from the container, before changing the configuration.
The symptoms below were observed on Docker Engine 29.9.2, containerd store,
Debian 13. Two situations stand out. A pull through the mirror
(registry-mirrors) works over HTTP without any additional setting, even with a
non-loopback address. A direct pull to Orca, such as
docker pull <ip>:80/library/alpine@sha256:…, requires HTTPS as soon as the
registry is not on the loopback.
Declaring the host in insecure-registries is supposed to lift this
requirement, but it did not give a reliable result. With "<ip>:80", a direct
pull succeeded once, with Orca 0.15.0. Replayed afterwards, the same pull failed
with EOF after about 51 s, with 0.20.0 as well as with 0.15.0, and nothing was
counted in varnishstat. The result is therefore not reproducible, and the
cause is not established. In front of Orca, do not count on this declaration.
For the loopback, a name that /etc/hosts resolves to 127.x does not benefit
from the exception: only localhost and the 127.x addresses themselves go
over HTTP, for a docker push as well as for a docker pull (measured on
Docker 29.9.2 with the containerd store). On this version, docker info lists
127.0.0.0/8 among the "Insecure Registries". The loopback rules of the
registry client are detailed in the guide
Serve a trusted registry, and log in to it.
On another Docker version, check this behaviour before relying on it.
| Symptom | Cause | Solution |
|---|---|---|
Direct pull: failed to do request: Head "https://<ip>:80/v2/…": http: server gave HTTP response to HTTPS client (code 1) | The registry is reached through an address or a name outside the loopback, or through a name resolved to 127.x by /etc/hosts: Docker expects HTTPS while the server answers over HTTP | Reach the registry through localhost or enable TLS; do not count on insecure-registries (next row) |
Direct pull: Head "https://<ip>:80/v2/…": EOF | Observed after about 51 s as soon as insecure-registries declares the host (see the paragraph above) | Reach Orca through localhost, or enable TLS; for Docker Hub images, go through registry-mirrors |
dial tcp [::1]:443: connect: connection refused on docker pull quay.localhost/… | Message confirmed with Orca 0.20.0. On Debian 13 with Docker 29.9.2 and the containerd store, quay.localhost resolves to ::1 and Docker tries HTTPS on port 443: *.localhost subdomain routing does not work for a docker pull without TLS | Enable TLS to target these registries with a direct pull; keep the subdomains for HTTP clients such as npm, Go and Helm with --plain-http |
UNAUTHORIZED | Private registry that requires authentication | Caching an authenticated registry falls under the sup-auth addon (see "Which licence for Orca?"); this case was not measured with credentials, so docker login is not a guaranteed solution |
200 response with an HTML page, or 401 on /v2/, instead of the expected content | The targeted subdomain is not declared in your config.yaml: in 0.20.0, Orca falls back to the default registry, Docker Hub, instead of returning 404 | Check that the registry (go, k8s, npmjs…) appears in registries and that the subdomain carries its name (e.g. npmjs.localhost for NPM) |
Check that the cache works
A fast docker pull proves nothing: Docker may have served a layer already
present locally. The proof is read in the Varnish counters. Run varnishstat
before then after a pull, and compare: MAIN.cache_hit must increase.
MAIN.cache_miss increases too, even on a pull served by the cache: on the
2026-11-04 measurement, it gained 2 on each pull served by the cache (11, 13,
15) while cache_hit gained 9. Do not use it as a criterion, then. On a freshly
started instance, the counters are zero or close to it, which is normal and not
a sign of failure.
# Health checkcurl -I http://localhost/healthz
# See the logsdocker logs orca
# Cache metricsdocker exec orca varnishstat -1 | grep "cache_hit\|cache_miss"Warning mlock() of VSM failed
This message appears at startup:
Warning: mlock() of VSM failed: Cannot allocate memory (12)It is harmless. Varnish tries to lock its shared memory (VSM) in RAM to prevent it from being swapped. On Docker with memory limits, this operation can fail, but Orca works correctly without it.
What happens when Docker Hub goes down?
Orca can help during an outage, but not indefinitely. Measured on 2026-11-04
with Orca 0.20.0 and Docker Hub made unreachable (iptables rules towards
registry-1.docker.io, auth.docker.io and the associated addresses), after a
docker image rm:
| Moment | Pull | Result |
|---|---|---|
| Right after the outage | by digest | succeeds in 56 s |
| Right after the outage | by tag (alpine:3.22), pulled after the digest | succeeds in 5.5 s |
| After 130 s | by digest | succeeds in 0.65 s |
| After 130 s | by tag | fails in 0.64 s with 503 Backend fetch failed on the authentication token |
Each duration comes from a single measurement, and the pulls follow each other
in this order: the pull by tag may have benefited from the anonymous
authentication token that the pull by digest had just obtained from
auth.docker.io. The internal cause of these delays was not measured, so do not
draw a rule from these figures. Retain only two observations. The first pull
after the outage took 56 s. And 130 s after the outage, the pull by digest still
succeeded while the pull by tag failed.
Which licence for Orca?
At startup, the 0.20.0 image writes License: Expires 2027-10-18 in
docker logs orca, and this is the only licence message we observed. Read this
date on your side: beyond it, update Orca, because each version embeds a free
licence valid for one year after its release
(README of the varnish/orca repository,
accessed on 2026-11-04).
According to the Varnish licence documentation accessed on 2026-11-04, the public registry cache works without a licence. A Premium licence enables addons, of which the following concern this page.
| Addon | What it opens |
|---|---|
sup-auth | Caching of registries that require authentication, with auth_ttl |
sup-persistence | The persisted cache, which survives a restart |
sup-otel | OpenTelemetry tracing (with vmod-otel); metrics and logs do not need it |
sup-vclediting | Custom VCL, through extra_vcl, extra_root_vcl and varnish.vcls |
sup-firewall | The Artifact Firewall, which also requires sup-auth |
A missing addon is not an error: the setting is accepted but has no effect,
except varnish.vcls, which Orca rejects without sup-vclediting. This
information comes from the documentation, not from our measurements: the
startup log of the image says addons=[] and cites none of these addons.
A private repository queried without credentials returns 401, with a
www-authenticate header relayed to auth.docker.io. The behaviour with real
credentials was not measured.
From cache to control: Varnish Artifact Firewall
Everything above makes Orca a cache: it speeds up downloads, but it serves whatever it is asked for. It does not decide whether a dependency has the right to come in. That is precisely the role of the Artifact Firewall, the control building block of Orca.
Enabled by enable_firewall: true on a virtual registry, the firewall
evaluates each resolution against rules and returns a decision: allow (serve),
hide (hide the version) or deny (refuse). A quarantine, set by
default_quarantine_days, also holds back packages published less than N days
ago, according to the
firewall documentation
(accessed 2026-11-04). You thus block a known malicious package, a vulnerable version
or a spoofed internal name (dependency confusion: an attacker publishes on a
public registry a package carrying the name of one of your private packages)
before it enters your builds.
The firewall ships in the image (version 0.8.0 announced at startup), but
Varnish's documentation ties it to the sup-firewall licence addon (see "Which
licence for Orca?"). Its activation is described in the guide below.
Potential reduction of your costs
If your CI/CD pulls its artifacts from a service that bills outbound data transfer, a local cache can reduce that bill. This lead was not measured: JFrog Artifactory, AWS ECR, Azure ACR and Google Artifact Registry are authenticated registries, and Orca's behaviour with credentials was not tested.
For public registries, the principle is simple: every docker pull or
npm install served by the cache is one download fewer from the Internet.
Key takeaways
Here is the essence of what this page measured and explained about Orca 0.20.0.
- Orca is a Virtual Registry Manager: it caches artifacts (Docker Hub, npm,
Go, Helm) at the HTTP level, and
registry-mirrorsonly concerns Docker Hub. - An image pull served from the cache was 2 to 4 times faster on the
2026-11-04 measurements (2.971 s then 1.392 s with
localhost, 2.98 s then 0.72 s with a non-loopback address, on two VMs, one measurement each): measure it on your own setup. - The passage through the cache is only proven for Docker Hub: npm, Go and Helm were only run once, with misses only.
- Outbound traffic to the registries goes down in proportion to the volume served from the cache.
- During a Docker Hub outage, a pull by digest already in the cache still succeeded 130 s after the outage, while a pull by tag failed (a single measurement).
- The configuration fits in one YAML file, with no VCL to write, and a single container is enough to start.
- Routing is done by subdomain:
npmjs.localhostfor npm,go.localhostfor Go;ghcr.localhostserves Helm and HTTP clients, notdocker pull. - A direct pull to Orca outside the loopback requires HTTPS: the
insecure-registriesworkaround is not reproducible and its cause remains unknown. - For Docker Hub, the health probe must expect
expected_response: 401, otherwise the remote goesSickand Orca answers 503; read the code on the registry API host, not on the website URL. - The
MAIN.cache_hitcounters ofvarnishstatprove that the cache is serving, and that is the measured way to follow it; the OpenTelemetry export was not run.
Next steps
These guides extend the page: understanding registries, choosing an alternative or a complement to Orca, and slimming down the images the cache has to carry.