Skip to content

Daytona.Registry reference

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.

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.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" });