Docker and OCI images
In the Console, create the OCI Hosted repository images-hosted. Set the images-cache Proxy upstream to the OCI Distribution service root, such as https://registry.example.org. Arka adds v2/<image>/manifests/… and v2/<image>/blobs/…. For a private upstream, configure Basic or Bearer credentials as the upstream requires. Verify manifest and layer downloads with a cold cache. Create the images-public Group and add Hosted before Proxy.
Sign in to Docker using the externally reachable hostname and any non-default port. The first path segment of an image reference is the Arka repository, followed by an image name that can include a namespace. Docker uses the standard /v2/ path. Arka also serves /repository/<repo>/v2/…. Set ARKA_BASE_URL to the externally reachable root URL. Arka uses it for the /v2/token Bearer challenge and upload Location headers.
REGISTRY=packages.example.org
printf '%s\n' "$ARKA_TOKEN" | docker login "$REGISTRY" -u "$ARKA_USER" --password-stdin
# A local image my-app:1.0.0 is already available.
docker tag my-app:1.0.0 "$REGISTRY/images-hosted/team/my-app:1.0.0"
docker push "$REGISTRY/images-hosted/team/my-app:1.0.0"
docker pull "$REGISTRY/images-public/team/my-app:1.0.0"Grant the CI token’s owner write on Hosted, which includes read access. Grant Group consumers read on Group and its relevant members. To pin content in CI, use crane to read the manifest digest and pull by that digest.
ref="$REGISTRY/images-public/team/my-app"
digest=$(crane digest "$ref:1.0.0")
crane pull "$ref@$digest" image.tarIf login works but push returns 403, check that the target is writable Hosted, the image starts with the correct repository name, and the account has permission. If the client reaches an internal address, check the challenge realm, chunked-upload Location, and ARKA_BASE_URL. Reverse proxies must forward /v2/ (including /v2/token) and support large request bodies. Use crane --insecure for local plain HTTP testing only. The production example uses HTTPS.
Production host routes, anonymous pulls & limits
- Dedicated registry hostnames: Configure
ARKA_OCI_HOST_ROUTESto map a dedicated hostname (e.g.registry.example.com/team/my-app:1.0.0) directly to separate read/write OCI repositories without embedding the Arka repository prefix in image references. See OCI / Docker registry hosts. - Anonymous cold pulls: Repositories with
anonymousReadenabled support unauthenticateddocker pullandcrane pull(including cold proxy misses) via short-lived, image-scoped/v2/tokenpull grants. - Manifest size limit & safe deletion: Manifest uploads exceeding 16 MiB are rejected with
HTTP 413 MANIFEST_INVALID. Deleting a manifest digest from one image uses per-image alias isolation so other images sharing the same digest remain intact, and OCI retention policies protect layers referenced by retained tagged manifests. - OCI 1.1 Referrers API & ORAS artifacts: Uploading a manifest with a valid
subjectdescriptor automatically indexes it and returnsOCI-Subject, enablingGET /v2/<image>/referrers/<digest>?artifactType=...(withOCI-Filters-Applied, Proxysha256-<hex>tag fallback, and Group merge) fororas attach/oras discover, Cosign signatures, and Syft SBOMs. OCI retention preserves attached referrers whenever their subject manifest is retained.