Skip to main content
datumctl compute build packages a Dockerfile and build context into an image, and optionally publishes it. Point it at the same Dockerfile you already use for a normal container. You don’t need any Compute-specific syntax.
build is for workloads on the microvm runtime class, the default. That class doesn’t run the image as a normal container. It boots the image in a MicroVM, which gives each Instance its own virtual machine with container-like density and startup speed. build packages your Dockerfile into the artifact that runtime boots from, and validates it against MicroVM requirements in the same step. A missing shared library or the wrong architecture shows up as a build-time error instead of a workload that never comes up. Workloads on the general-purpose runtime class run standard container images, so they don’t need build. Push the image with the tools that you already use. For more information, see Choose a runtime class.
build needs a BuildKit backend to run: Docker Desktop or Docker Engine with BuildKit enabled (the default on modern installs), a standalone buildkitd, or BUILDKIT_HOST pointing at one.
With no --output, this is a local debug build: it packages the image so you can confirm it builds successfully, without writing or publishing anything. Once you’re ready to deploy it, add --output or move on to deploying workloads.

Choosing a Dockerfile

By default, build looks for Dockerfile.datum in the build context and falls back to Dockerfile if that file doesn’t exist. This lets you keep a Compute-specific variant alongside your normal one without extra flags. Use -f to point at a Dockerfile anywhere else:

Writing the output somewhere

--output (-o) accepts three kinds of destination:
When --output is a registry reference, build asks for confirmation before pushing. Pass --push to skip that prompt. You need --push in CI, where there is no terminal to confirm on.

Checking compatibility before you package it

--analyze inspects the built entrypoint for problems that only show up once the MicroVM runtime tries to boot the image. Examples include a binary built for the wrong architecture, a startup script whose interpreter is missing, or a shared library the final stage never copied in:
Where a fix is a mechanical Dockerfile edit, the finding shows exactly what to change:
Use --fix when you’re ready to apply changes like that automatically. It edits the selected Dockerfile in place and rebuilds. --fix implies --analyze and only applies safe, exact-line edits. It never restructures your Dockerfile.

Inspecting a published image

build inspect <image> diagnoses an image that already exists in a registry. Use it when a deployment isn’t starting and you want to confirm the image itself is the problem before you look at the workload. It reports the same kind of compatibility findings as --analyze, plus the packaged filesystem and startup configuration Compute will boot from. Add --extended for additional OCI metadata: the image index, manifest digest, and layer count. Inspection never downloads the packaged filesystem layer itself, so it stays fast even against a large image.

Next steps

  • datumctl compute build --help and datumctl compute build inspect --help for the full flag reference.
  • Deploying workloads — take a published image and run it as a workload.
Last modified on December 1, 2026