Daytona.Registry reference
Registry
Section titled “Registry”Source:
packages/daytona/src/Registry.ts
Credentials for a private container registry, so Daytona can pull
private images into a Snapshot. Daytona picks the registry whose
url matches the image’s host.
Registry: Pulling a Private Image
Section titled “Registry: Pulling a Private Image”export const Ghcr = Daytona.Registry("Ghcr", { url: "ghcr.io", username: "alchemy-run", password: Config.Redacted("GHCR_TOKEN"),});
export const Base = Daytona.Snapshot("Base", { image: "ghcr.io/alchemy-run/base:1.0.0", registry: Ghcr,});Registry: Looking up an existing registry
Section titled “Registry: Looking up an existing registry”Registry.lookup references a registry Alchemy doesn’t manage (created in
the Daytona dashboard or by another stack). It is read during plan/deploy,
never created, updated or deleted.
const ghcr = Daytona.Registry.lookup({ name: "ghcr" });