Images
View MarkdownEvery Job, Sandbox, Function and Agent runs in a container image. You can use a catalog image, any public or private registry image, an image you upload directly to Nodus, or an Image that Nodus builds for you. When you submit work, Nodus resolves the image’s tag to a digest and records it, so a retry or a recovery runs exactly the same bytes.
Catalog images
Section titled “Catalog images”| Image | Contents | Default for |
|---|---|---|
nodus/python:3.12 (also 3.10, 3.11, 3.13) |
Debian slim, Python, uv, git | Jobs without a GPU |
nodus/pytorch:2.8-cuda12.8 |
CUDA 12.8 runtime, Python 3.12, PyTorch 2.8 | Jobs with a GPU |
nodus/agent-tools |
Python 3.12, Node 22, git, ripgrep, the Nodus SDK | Sandboxes and Agents |
nodus get images -n nodusnodus run --gpu L4 --image nodus/pytorch -- python -c "import torch; print(torch.cuda.get_device_name())"Catalog images run as uid 1000 and include /bin/sh.
Upload your own image
Section titled “Upload your own image”Use the current Nodus CLI to upload an image from your local Docker daemon. Sign in with nodus login, then:
IMAGE=$(nodus image push my-app:latest --name my-app:trial -p my-project)printf '%s\n' "$IMAGE"The command uploads to your project’s private repository and prints one immutable
registry/repository@sha256:... reference. Progress goes to stderr, so the variable contains only the reference.
Your Nodus login must have images:write access to the target project. There is no separate registry account,
AWS role, or image-pull Secret to configure for this upload.
You can also upload a single-image archive produced by docker image save:
docker image save my-app:latest -o my-app.tarIMAGE=$(nodus image push ./my-app.tar --name my-app:trial -p my-project)The archive path uploads an already-built image; it is not a source archive or Dockerfile build request.
For automation that needs image identity, add --json:
nodus image push ./my-app.tar --name my-app:trial -p my-project --json > image-receipt.jsonThe receipt uses schema nodus.image.push/0.1 and contains reference, manifestDigest, configDigest
and ordered diffIDs from the uploaded image’s config. It is emitted only after the registry confirms the
immutable manifest. It contains no raw image config or credentials. The diffIDs are declared layer content
identities; this receipt does not independently verify a qualification archive or prove that the image ran.
If the command fails before returning a receipt, an upload may still have committed; inspect the destination
before retrying. Omitting --json preserves the single reference line used by the Python SDK.
Use the returned reference as the workload’s image, including on GPU Sandboxes with fuseMount: true:
spec: image: <the returned registry/repository@sha256:digest> fuseMount: trueFUSE support does not install or mount JuiceFS. Keep your filesystem client, mount command and guest Secrets configured as described in GPU Sandboxes. These are separate from image-pull credentials. Uploaded images run directly by reference; this operation does not create an Image build resource in the console.
Python uses the same upload command and authorization through the CLI bundled in the platform wheel:
import nodus
image = nodus.Image.push("my-app:latest", name="my-app:trial", project="my-project")sb = nodus.Sandbox.create(name="my-app", image=image, project="my-project")Use await nodus.Image.push.aio(...) in async code. Upgrade nodus-compute if your installed CLI does not yet
have image push. External private registries remain an alternative.
Build availability
Section titled “Build availability”Image builds require a configured build runner and registry. Without them, requests for steps, Dockerfiles and
Sandbox snapshots return ImageBuildUnavailable with HTTP 503 before accepting a build or charging for one.
You can still build locally and upload with nodus image push, publish to another registry, or create an Image
with only base and no steps. Environment packages can use a prebuilt package.image.
Existing unstarted build requests report Failed with an explanation instead of waiting indefinitely.
The build examples below describe the contract for a deployment with a configured build runner and registry.
Save a running environment (Beta)
Section titled “Save a running environment (Beta)”Install your tools and prepare files in a running Sandbox, then save its writable filesystem as an Image:
In the console, open the run’s Sandbox panel and choose Save environment, or use the same action from the Sandbox’s menu. Name the image and save. Follow capture and build progress on the Image page. When it is Ready, choose Create sandbox to review and launch a new Sandbox with that exact image version. Opening the create form does not start compute. You can also select the saved image when creating an Agent.
{ "apiVersion": "nodus.dev/v1", "kind": "Image", "metadata": {"name": "saved-environment", "namespace": "default"}, "spec": {"fromSandbox": {"name": "capture-source"}, "platform": "linux/amd64"}}nodus apply -f image.jsonnodus wait image/saved-environment --for=condition=Readynodus get image saved-environment -o jsonpath='{.status.reference}'Set fromSandbox.name to your Sandbox. Use the returned immutable reference as the image for a new Sandbox
or Agent definition. The source keeps running; pause application writes first if related files must be saved
consistently. Mounted Volumes, injected Secrets and process memory are not part of the saved image.
The source node must support filesystem capture. Omit platform to detect its architecture, or specify a
matching platform. Clients can send fromSandbox.uid and fromSandbox.attempt from the source they inspected
to refuse a replacement or restarted sandbox; the console always supplies both. Capture has a
ten-minute deadline and a 5 GiB writable-layer limit. Stopped sources and includePaths are not supported by
this capture path yet. Follow status.progress.stage: Capturing, Queued, Building, then Pushing.
A stopped or replaced source, expired capture, or rejected upload reports CaptureFailed; create a new save
after fixing the source. Builds and retained images use the existing compute and storage billing paths.
In Python, save the running source and pass its Image to a new Sandbox:
source = nodus.Sandbox.from_name("capture-source", project="development", wake=False)saved = source.snapshot_filesystem("saved-environment")saved.build() # follows logs in the source projectrestored = nodus.Sandbox.create(name="restored", image=saved, project="production")Sandbox.create(image=saved) waits for the saved image if it is still building; a failed build raises
ImageBuildFailed before launch. Build status and logs stay in the source project, and the new Sandbox
uses the immutable registry reference. Both projects must belong to the same organization.
Reopen a named image with nodus.Image.from_name("saved-environment", project="development").
Build an Image
Section titled “Build an Image”In deployments with retained-image metering, Image resources stored in the Nodus registry contribute to your organization’s storage usage. Shared blobs count once per organization; Nodus catalog layers are excluded. Newly recorded image storage enters the next hourly sample. Deleting an Image stops its storage charge. Blobs also used by another Image remain attributed to that Image. External registry images do not add Nodus storage charges. Earlier versions retained by an Image count until that Image is deleted.
An Image starts from a base and adds steps: aptInstall, pipInstall, uvPipInstall, uvSync, run,
copy, env and workdir.
apiVersion: nodus.dev/v1kind: Imagemetadata: name: ex-images-buildspec: base: nodus/python:3.12 steps: - aptInstall: [jq] - pipInstall: {packages: ["requests==2.32.5"]} - env: {APP_MODE: example}nodus apply -f image.yamlnodus wait image/ex-images-build --for=condition=ReadyThe build log streams from GET …/images/{name}/log?follow=true; the Python SDK prints it while it builds.
Run on it with imageRef:
apiVersion: nodus.dev/v1kind: Jobmetadata: name: ex-images-buildspec: imageRef: {name: ex-images-build} # runs the digest the Image built, pinned at admission command: [python, -c, "import os, requests; print('requests', requests.__version__, os.environ['APP_MODE'])"]In Python:
image = (nodus.Image.from_registry("nodus/pytorch:2.8-cuda12.8") .apt_install("git").pip_install("transformers==4.57.6", "peft") .env({"HF_HUB_ENABLE_HF_TRANSFER": "1"}))Builds run on Nodus. An Image whose spec matches one your org has
already built, on the same base digest, reuses that digest without building (status.build.cached: true). An
Image with only a base is ready at once: it is that image’s digest.
You can also build from a Dockerfile, inline or uploaded with its context:
spec: dockerfile: inline: | FROM nodus/python:3.12 RUN pip install polars==1.33.1Build-time credentials go in buildSecrets: they are mounted for the build only and never stored in a layer.
Private registries
Section titled “Private registries”This section applies when your image is hosted in another registry. Images uploaded with nodus image push
use Nodus-managed pull authorization automatically.
Create a Registry Secret (Secrets) and name it under
imagePullSecrets, on the Job or Sandbox for image, or on the Image for a private base.
When work runs on a provider that pulls containers itself, Nodus copies the image by digest into your org’s space
in the Nodus registry first, so your registry credential never reaches the provider. Such providers need
/bin/sh in the image; an image without it gets the ProviderContainerNeedsShell warning and runs elsewhere.
Pull a built Image yourself
Section titled “Pull a built Image yourself”A built Image lives in the Nodus registry under your org; status.reference holds its full reference. Log in
with any username and an API key as the password, then pull it:
REF=$(nodus get image ex-images-build -o jsonpath='{.status.reference}')echo "$NODUS_API_KEY" | docker login "${REF%%/*}" -u nodus --password-stdindocker pull "$REF"Viewers, and keys without the images:write scope, can pull but not push.
Status and errors
Section titled “Status and errors”nodus get image ex-images-build shows PHASE, DIGEST and SIZE. A failed build has a reason:
| Reason or error | Meaning |
|---|---|
BaseNotFound |
The base does not exist, or its registry refused the pull Secret |
StepFailed |
A step exited non-zero; the build log shows which |
BuildTimeout |
The build ran past its time limit |
CaptureFailed |
The source stopped or changed, the upload failed, or capture expired; save again from a running Sandbox |
ImageCaptureUnavailable |
The source node does not support filesystem saves on its current connection, or the requested architecture differs |
ImageNotFound, ImagePullFailed |
A Job’s image could not be resolved when you submitted it |
ImageNotReady |
A Job or Sandbox names an Image that has not finished building |