---
title: "Private Registries and Air-Gapped Deployments | wasmCloud"
description: "Mirror wasmCloud container images and OCI artifacts to a private registry for air-gapped or restricted Kubernetes environments and regulated infrastructure."
canonical: "https://wasmcloud.com/docs/kubernetes-operator/operator-manual/private-registries/"
---

Version: v2

# Private Registries and Air-Gapped Deployments

Some environments restrict access to public container registries like `ghcr.io` and `docker.io`. In these cases, you need to mirror the required container images to your private registry before deploying.

This guide covers how to mirror the images required by the wasmCloud Helm chart and configure the deployment to use your private registry.

## Required images

The wasmCloud `runtime-operator` Helm chart uses the following container images:

| Image | Component |
| --- | --- |
| `ghcr.io/wasmcloud/runtime-operator:<version>` | Operator |
| `ghcr.io/wasmcloud/runtime-gateway:<version>` | Gateway |
| `ghcr.io/wasmcloud/wash:<version>` | Runtime host |
| `docker.io/nats:<nats-version>` | NATS server (optional) |

> **Tip**
>
> To find the exact image tags for a given chart version, run:
>
> shell
>
> ```shell
> helm show values oci://ghcr.io/wasmcloud/charts/runtime-operator --version <version>
> ```

For example, with version `2.13.0`, the images are:

- `ghcr.io/wasmcloud/runtime-operator:2.13.0`
- `ghcr.io/wasmcloud/runtime-gateway:2.13.0`
- `ghcr.io/wasmcloud/wash:2.13.0`
- `docker.io/nats:2.11.3-alpine`

If you disable the built-in NATS server (`--set nats.enabled=false`), you do not need to mirror the NATS image.

## Mirror images to your registry

### Prerequisites

- [oras](https://oras.land) CLI
- [yq](https://github.com/mikefarah/yq) and [jq](https://jqlang.github.io/jq/)
- Authenticated to both the source registries (`ghcr.io`, `docker.io`) and your destination registry

### Create an image manifest

Create a `mirror.yaml` file listing the source and destination for each image. Replace `myregistry` with your private registry:

yaml

```yaml
images:
  # wasmCloud runtime images
  - source: ghcr.io/wasmcloud/runtime-operator:2.13.0
    destination: myregistry/wasmcloud/runtime-operator:2.13.0
  - source: ghcr.io/wasmcloud/runtime-gateway:2.13.0
    destination: myregistry/wasmcloud/runtime-gateway:2.13.0
  - source: ghcr.io/wasmcloud/wash:2.13.0
    destination: myregistry/wasmcloud/wash:2.13.0

  # Third-party images
  - source: docker.io/nats:2.11.3-alpine
    destination: myregistry/nats:2.11.3-alpine
```

### Run the mirror script

Create and run `mirror.sh`:

bash

```bash
#!/bin/bash
CONFIG_FILE="mirror.yaml"

if ! command -v oras >/dev/null 2>&1; then
  echo "oras not found. Please install: https://oras.land"
  exit 1
fi

echo "Mirroring images from $CONFIG_FILE..."
yq -o=json e '.images[]' "$CONFIG_FILE" | jq -c '.' | while read -r line; do
    src=$(echo "$line" | jq -r '.source')
    dst=$(echo "$line" | jq -r '.destination')
    if [[ -n "$src" && -n "$dst" && "$dst" != "null" ]]; then
      echo "Copying $src -> $dst"
      oras copy "$src" "$dst"
    fi
done
```

shell

```shell
chmod +x ./mirror.sh
./mirror.sh
```

## Deploy with your private registry

The Helm chart provides a `global.image.registry` value that overrides the registry for all component images at once.

### Basic install with global registry override

shell

```shell
helm install wasmcloud-runtime oci://ghcr.io/wasmcloud/charts/runtime-operator \
  --version 2.13.0 \
  --namespace wasmcloud \
  --create-namespace \
  --set global.image.registry="myregistry"
```

### With an image pull secret

If your private registry requires authentication, create a Kubernetes pull secret and reference it in the Helm install:

shell

```shell
kubectl create namespace wasmcloud

kubectl create secret docker-registry my-registry-secret \
  --namespace wasmcloud \
  --docker-server=myregistry \
  --docker-username=<username> \
  --docker-password=<password>
```

Then install with the pull secret:

shell

```shell
helm install wasmcloud-runtime oci://ghcr.io/wasmcloud/charts/runtime-operator \
  --version 2.13.0 \
  --namespace wasmcloud \
  --create-namespace \
  --set global.image.registry="myregistry" \
  --set global.image.pullSecrets[0].name="my-registry-secret"
```

### Per-component registry overrides

If you need to mirror images to different registry paths, you can override each component individually:

shell

```shell
helm install wasmcloud-runtime oci://ghcr.io/wasmcloud/charts/runtime-operator \
  --version 2.13.0 \
  --namespace wasmcloud \
  --create-namespace \
  --set operator.image.registry="myregistry" \
  --set gateway.image.registry="myregistry" \
  --set runtime.image.registry="myregistry" \
  --set nats.image.registry="myregistry"
```

## Rendering manifests with `helm template`

If your organization uses a GitOps workflow or requires manifests to be reviewed before applying, you can use `helm template` to render the Kubernetes manifests locally without installing anything to the cluster.

### Render to stdout

shell

```shell
helm template wasmcloud-runtime oci://ghcr.io/wasmcloud/charts/runtime-operator \
  --version 2.13.0 \
  --namespace wasmcloud \
  --set global.image.registry="myregistry" \
  --set global.image.pullSecrets[0].name="my-registry-secret"
```

### Render to a directory

Write the rendered manifests to a directory for review or to check into version control:

shell

```shell
helm template wasmcloud-runtime oci://ghcr.io/wasmcloud/charts/runtime-operator \
  --version 2.13.0 \
  --namespace wasmcloud \
  --set global.image.registry="myregistry" \
  --set global.image.pullSecrets[0].name="my-registry-secret" \
  --output-dir ./wasmcloud-manifests
```

This creates a `wasmcloud-manifests/` directory with one file per Kubernetes resource. You can then apply them with:

shell

```shell
kubectl apply --recursive -f ./wasmcloud-manifests
```

### Verify image references

After rendering, you can verify that all image references point to your private registry:

shell

```shell
helm template wasmcloud-runtime oci://ghcr.io/wasmcloud/charts/runtime-operator \
  --version 2.13.0 \
  --namespace wasmcloud \
  --set global.image.registry="myregistry" \
  | grep "image:"
```

You should see all images prefixed with your registry and no references to `ghcr.io` or `docker.io`.

### Use a values file

For repeatable deployments, store your overrides in a values file rather than passing `--set` flags:

yaml

```yaml
global:
  image:
    registry: myregistry
    pullSecrets:
      - name: my-registry-secret
```

Then reference it with `-f`:

shell

```shell
helm template wasmcloud-runtime oci://ghcr.io/wasmcloud/charts/runtime-operator \
  --version 2.13.0 \
  --namespace wasmcloud \
  -f my-values.yaml
```

This same values file works with `helm install` and `helm upgrade`.

> **Using Kustomize?**
>
> If your team uses [Kustomize](https://kustomize.io/) to manage Kubernetes manifests, you can combine it with `helm template`. Render the chart to a directory as shown above, then use Kustomize to apply additional patches, labels, or transformations on top of the rendered output. For example, you can use a Kustomize [`images` transformer](https://kubectl.docs.kubernetes.io/references/kustomize/builtins/#_imagetagtransformer_) to rewrite image references, or layer environment-specific overlays on top of a shared base.
>
> A minimal setup looks like:
>
> yaml
>
> ```yaml
> resources:
>   - ./wasmcloud-manifests/runtime-operator/templates
>
> images:
>   - name: ghcr.io/wasmcloud/runtime-operator
>     newName: myregistry/wasmcloud/runtime-operator
>   - name: ghcr.io/wasmcloud/runtime-gateway
>     newName: myregistry/wasmcloud/runtime-gateway
>   - name: ghcr.io/wasmcloud/wash
>     newName: myregistry/wasmcloud/wash
>   - name: docker.io/nats
>     newName: myregistry/nats
> ```
>
> shell
>
> ```shell
> kubectl apply -k .
> ```
>
> This approach is particularly useful when you need to manage multiple environments (staging, production) with different registries or configurations.

## Helm values reference

These are the image-related values you can configure:

| Value | Default | Description |
| --- | --- | --- |
| `global.image.registry` | `""` | Override registry for all images |
| `global.image.pullSecrets` | `[]` | Global image pull secrets |
| `operator.image.registry` | `ghcr.io` | Operator image registry |
| `operator.image.repository` | `wasmcloud/runtime-operator` | Operator image repository |
| `operator.image.tag` | Chart `appVersion` | Operator image tag |
| `gateway.image.registry` | `ghcr.io` | Gateway image registry |
| `gateway.image.repository` | `wasmcloud/runtime-gateway` | Gateway image repository |
| `runtime.image.registry` | `ghcr.io` | Runtime host image registry |
| `runtime.image.repository` | `wasmcloud/wash` | Runtime host image repository |
| `runtime.image.tag` | Chart `appVersion` | Runtime host image tag (defaults to the chart's `appVersion`) |
| `nats.image.registry` | `docker.io` | NATS image registry |
| `nats.image.repository` | `nats` | NATS image repository |
| `nats.image.tag` | `2.11.3-alpine` | NATS image tag |

## How hosts cache pulled images

Each host keeps a disk cache of the component images it has pulled. Since 2.11.0 entries are scoped by three things: the resolved registry **user**, the HTTP or HTTPS transport, and the snapshot of extra CA roots used to fetch the artifact. Two consequences matter when you run a private or mirrored registry:

- **Upgrading to 2.11.0 invalidates every existing entry**, because older entries carry no such scope. Hosts re-pull each image once, and disk usage roughly doubles until the old directories are removed — which the washlet does on its first control-loop turn, with no age check, then sweeps again every five minutes.
- **`pullPolicy: Never` works offline only inside a scope the host has already fetched.** After upgrading, or after changing the username, transport, or CA set, pull once under another policy before switching back. A *password* rotation is not a scope change: scoping is by user, not password, and one non-`Never` pull revalidates each entry's manifest with the new password without downloading it again.

Two further details for mirrored setups: `IfNotPresent` now revalidates a cached entry's manifest with the registry even for a digest-pinned reference, so that reusing bytes from disk still requires passing the caller's current authorization and TLS policy; and the `cache.key` file in the cache root keys every entry's name, so a cache copied without it is orphaned and re-fetched.

See [the troubleshooting entry](https://wasmcloud.com/docs/troubleshooting/#every-image-is-pulled-again-or-pullpolicy-never-fails-after-upgrading-to-2110) for the symptom-first version of this.

## Offline documentation

These docs are also published as a container image and a static tarball so operators can read them inside an air-gapped environment.

Mirror the docs image alongside the other images:

shell

```shell
export REGISTRY=my-registry.corp.com
export DOCS_VERSION=2.13.0

oras copy ghcr.io/wasmcloud/docs:${DOCS_VERSION} \
  ${REGISTRY}/wasmcloud/docs:${DOCS_VERSION}
```

Then run the docs as a single `Deployment` with a `ClusterIP` `Service`. Front it with whatever ingress your environment already uses (Traefik, Istio, your existing reverse proxy):

yaml

```yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: wasmcloud-docs
  namespace: wasmcloud
spec:
  replicas: 1
  selector:
    matchLabels:
      app: wasmcloud-docs
  template:
    metadata:
      labels:
        app: wasmcloud-docs
    spec:
      imagePullSecrets:
        - name: registry-credentials
      containers:
        - name: nginx
          image: my-registry.corp.com/wasmcloud/docs:2.13.0
          ports:
            - containerPort: 80
          readinessProbe:
            httpGet:
              path: /
              port: 80
---
apiVersion: v1
kind: Service
metadata:
  name: wasmcloud-docs
  namespace: wasmcloud
spec:
  selector:
    app: wasmcloud-docs
  ports:
    - port: 80
      targetPort: 80
```

The image bakes only the current (v2) docs — the archived `v1` and `0.82` versions are stripped at build time. It is a sealed snapshot built with external integrations disabled, so it makes no outbound requests to Google Analytics, HubSpot, Reo, Algolia, Google Fonts, or `api.github.com`. Links to external sites (GitHub, Slack, social) will not resolve from an air-gapped browser.

For environments without Kubernetes, the same content is published as a static tarball on the [docs release page](https://github.com/wasmCloud/wasmcloud.com/releases?q=docs-v):

shell

```shell
tar xzf wasmcloud-docs-2.13.0.tar.gz -C /var/www/docs
# serve /var/www/docs with any static web server
```

The static site is built with `trailingSlash: true`, so URLs end in `/` and resolve to `<dir>/index.html`. Any HTTP server that serves `index.html` for directory requests will work; `python -m http.server` and the default nginx `try_files $uri $uri/ $uri/index.html` configuration both do.

Last updated on **Oct 21, 2026** by **Eric Gregory**
