API referenceSections

Container

Container object

A site's Windows container (ADR 0162). Experimental: not yet run on Windows.

  • configured boolean required
  • image string required
  • tag string required
  • digest string required
  • port integer required
  • restart string required
  • health_path string required
  • isolation string required
  • user string required
  • volumes array<ContainerVolume> required
  • desired string required

    running or stopped: what the owner asked for

  • state string required

    running, stopped, failed, or empty before the first deployment

  • working boolean required
  • last_error string required
  • registry_user string required
  • has_registry_password boolean required
  • env NodeEnv required
  • cpu_cores number required
  • memory_mb integer required
  • max_image_mb integer required
  • active ContainerRelease | null required
    • id string required
    • image string required
    • tag string required
    • wanted string required

      The digest pinned when deployed, or empty

    • digest string required

      The digest the server ran, known once deployed

    • state string required
      Allowed values: "deploying" "active" "standby" "failed"
    • error_code string required
    • image_bytes integer (int64) required
    • created_at string (date-time) required
  • host object required
    • engine boolean required
    • engine_version string required
    • hyperv boolean required
    • engine_kind string required

      The server's container engine (ADR 0193); containerd runs trusted containers only

      Allowed values: "docker" "containerd"
    • hyperv_isolation boolean required

      The server can run Hyper-V isolated containers now (ADR 0190): false on a VM without nested virtualization, and when unknown

    • os_build integer required
    • image_tag string required

      The Microsoft base image tag that matches the server (ltsc2019, ltsc2022, ltsc2025)

    • linux string required
      Allowed values: "not_supported"
  • allowed boolean required
  • isolation_required string required
  • trust string required

    The container's trust profile (ADR 0190); before it has one, the plan's

    Allowed values: "trusted" "standard" "hostile"
  • trust_required string required

    The weakest profile the plan allows

    Allowed values: "trusted" "standard" "hostile"
  • trust_choices array<string> required

    The profiles the owner may choose, weakest first

    Allowed values: "trusted" "standard" "hostile"
  • registries array<string> required
  • require_digest boolean required
  • updated_at string (date-time) | null required
  • stack ContainerStack | null optional

    Multi-service manifest (ADR 0192); null for one container

    • web string required
    • web_command array<string> required
    • web_entrypoint array<string> required
    • web_depends_on array<string> required
    • web_health ContainerHealth required
    • web_cpu_cores number required
    • web_memory_mb integer required
    • services array<ContainerServiceView> required
    • order array<string> required

      Start order, the web service last

    • source string required

Used by

GET/api/v1/tenants/{tid}/sites/{id}/containerThe site's Windows container, or what the server and plan offer for one (ADR 0162)
PUT/api/v1/tenants/{tid}/sites/{id}/container 202Create or change the site's container and deploy it as a new release; the running version stays until the new one answers its health check
POST/api/v1/tenants/{tid}/sites/{id}/container/deploy 202Deploy another version of the same image (a tag or a digest) as a new release
POST/api/v1/tenants/{tid}/sites/{id}/container/start 202Start the container; refused while the account is suspended
POST/api/v1/tenants/{tid}/sites/{id}/container/stop 202Stop the container
POST/api/v1/tenants/{tid}/sites/{id}/container/releases/{rid}/activate 202Go back to a release; its exact digest runs again. Data folders are not changed