oiyai / docs

Templates

Reuse container configurations without copying secret values.

Starting points

Built-in templates provide container image, command, port, resource, workspace, and idle-sleep defaults. Review these settings before creating a service. A template is a configuration starting point; it is not proof that matching capacity is currently available.

For a complete PyTorch/JupyterLab walkthrough, follow Run a GPU notebook.

Workspace templates

Save configurations as account-isolated templates for repeatable service creation. Saved templates include the names of required environment variables, never their values. Supply actual secrets when creating a service.

Updates and deletion require the current revision. Deleting a template does not delete or change services that were created from it.

Capture an existing service

Use Save as template on a service to capture its configuration at the current revision. Required environment names are retained; values and runtime-injected activity credentials are excluded. Files, process state and image-pull credentials are not copied. Rename, duplicate settings and template capture.

NVIDIA_* environment names are reserved and cannot be required by a template.

Private images

Services launched from a template select matching account-owned private-image access by exact repository. A template does not store the registry username or token.

Portability

Templates describe the workload, not a supplier account. Choose tier and geography when deploying. A portable template still needs a compatible image, a supported resource profile, enabled regional capacity, and appropriate pricing.

The API provides GET /api/templates, POST /api/templates, PUT /api/templates/{id}, and DELETE /api/templates/{id}. See the template API.

On this page