How to create a global workspace template
Global workspace templates are visible to every user. Only
the root admin can create, edit, enable, disable, import, export, or delete them, from the
Workspace templates area of admin (/admin/templates).
Built-in workspace-template README previews support Markdown tables and fenced code blocks. Use fenced code for commands so operators can read and copy multi-line instructions without the preview merging them into one paragraph.
Create a workspace template from an existing image
Section titled “Create a workspace template from an existing image”
- Open Workspace templates (
/admin/templates). - Click New workspace template to open the creation form.
- Enter Name and Image. Use a fully qualified image reference with an explicit registry
host, such as
docker.io/library/python:3.11,ghcr.io/org/image:tag, ornvcr.io/.... LabPod rejects unqualified names such aspython:3.11. - Set Type, Default CPU, Default memory, and GPU defaults - these become the researcher-facing recommended resources on the composer.
- Add ports or launcher definitions.
- Prefer Import from catalog for common apps.
- Use a manual port only for one-off apps.
- Set the switch next to the save button to Disabled if you want to review the definition before researchers can use it.
- Click Create workspace template.
- When it is ready, select it, set the switch to Enabled, and click Save. Each researcher downloads the image into their own account when they launch a workspace created from it.
Enabled workspace templates appear in every user’s workspace composer. Creating a workspace copies the workspace template into that workspace, so later edits, or disabling the workspace template, do not change existing workspaces. If no other workspace template is marked as the default recommendation, the page prompts you to Recommend selected so new researchers have a clear starting point; a workspace template carrying that recommendation shows a Default pill and can be cleared from its detail pane.
Technical fields - image tags, commands, ports, environment, mounts, launcher behavior, and bundle details - live behind that workspace template’s Advanced toggle, separate from the CPU/memory/GPU defaults and the app/resource summary shown at the top of the detail pane.
The technical form groups About, Resources, Environment, Apps, and Container entrypoint behind summaries. Collapsing them preserves edits; validation reveals the field to fix. The inactive idle policy is read-only.
Unsaved global-template edits are protected when you select another template, choose New or Import, refresh, or leave the page. Keep the draft when the discard prompt appears if you still need it. Failed saves retain edits; edits made while Save or Reset is running stay unsaved when its response arrives.
Import a workspace template bundle
Section titled “Import a workspace template bundle”Use import when another LabPod server or user exported a .tar bundle.
- Open Workspace templates (
/admin/templates). - Click Import bundle.
- Upload the
.tarbundle, or paste an HTTPS bundle URL that your browser can fetch. A cross-origin host must allow the request through CORS; LabPod does not fetch the URL for you. - Review the preview: image, ports, README, Dockerfile, context files, and any publisher terms link.
- Click Import. The imported workspace template stays disabled until you enable it.
- If the bundle contains a Dockerfile, review the preserved recipe before enabling the workspace template. Root does not build it; each researcher builds it in their own account after creating a workspace from it.
Bundles must use schema version 2. A version 1 bundle is rejected; ask its author to re-export it
from a current LabPod server, or set schema_version to 2 and remove the retired
requires_eula field. A Publisher terms link is informational; LabPod does not record
acceptance of third-party terms.
Imported Dockerfile contexts are preserved by LabPod so the bundle can be rebuilt and re-exported later.
For automation or offline handoff, a root admin can import a host-local bundle with the CLI:
Import as a global workspace template:
sudo labpod admin template import ./template.tar --global# Run these as rootlabpod admin template import ./template.tar --globalOr import for a specific user instead:
sudo labpod admin template import ./template.tar --owner alice# Run these as rootlabpod admin template import ./template.tar --owner aliceA --global import is created disabled so root can review it before researchers create workspaces
from it. A --owner import is created active immediately, since it belongs to that user’s own
account from the start. Use the web UI for Dockerfile-backed bundles; the CLI intentionally does
not orchestrate image builds.
Publish a Dockerfile-backed global recipe
Section titled “Publish a Dockerfile-backed global recipe”Workspace templates created from bundles or built-in managed templates can carry a Dockerfile. Root owns and reviews the global definition, but does not build a workspace image. When a researcher creates a workspace from an enabled recipe, the workspace saves its own copy of the recipe; launching the workspace (or choosing Build image) builds that copy in the researcher’s own account.
Every external image used by FROM, Dockerfile # syntax=..., COPY --from=..., or
RUN --mount=from=... must include an explicit registry host. Bare localhost/... references are
treated as local rootless-store images; localhost:<port>/... is a registry host like any other
and must be explicit too.
- Import or create the workspace template with its Dockerfile and context.
- Review the recipe and registry sources.
- Enable the workspace template.
- Have a regular test account create a workspace from it, then use Launch
<app>on the workspace page. The resulting build and image belong only to that account.
Root cannot pull or build workspace images. To distribute one prebuilt image to several accounts, publish it to an external registry; do not use an ad-hoc root build as a cache.
Add or edit launchers
Section titled “Add or edit launchers”Launchers make apps appear on a researcher’s workspace page with their own controls.
- Open Launchers (
/admin/launchers, also reachable from Workspace templates) and select New launcher to create a reusable launcher definition. - Open Workspace templates (
/admin/templates). - Select a workspace template and click Import from catalog in Apps.
- Pick the catalog launcher and save.
Catalog imports are snapshots. Editing Launchers later does not update existing workspace templates; re-import or edit the template port when you need one to change. Existing workspaces keep the apps saved in their own definitions; changes reach only workspaces created afterward.
Disable instead of delete
Section titled “Disable instead of delete”Disable a workspace template when you want to stop new workspaces from using it while preserving existing workspace records. Delete only when no workspaces depend on it.