unContainer

Get started

Update unContainer

Preview what would download, then update the CLI and the guest images you use in one step. Every file is checked before it replaces anything.

See what would change

update is available from v0.5.0. On an earlier version, run the installer once more to get the latest release.

uncontainer --version uncontainer update --check

--check lists each component that would change, such as CLI v0.4.0 → v0.5.0 or a new debian:docker revision, with its download size and the total. Components already current are listed as installed. Nothing is downloaded.

Update

uncontainer update

Shows the same plan and asks before applying it. Pass --yes to skip the prompt; it is required when there is no terminal, as in CI or an agent.

uncontainer update --yes

Without a scope, update covers the CLI and every guest image you already have cached. Narrow it to one part:

uncontainer update cli uncontainer update image alpine uncontainer update image debian:docker

Pin or roll back

Select an exact CLI release or debian:docker revision with --to. Older releases are accepted, so this also rolls back.

uncontainer update cli --to v0.3.0 uncontainer update image debian:docker --to v1

Guest images follow the kernel

Each CLI release boots one unKernel, and each guest image is built for one unKernel. When an update moves the CLI to a different unKernel, it prepares matching images for the distros you have cached in the same step, so the next run doesn’t stop to download. Images you haven’t used are still fetched on first use.

How downloads are checked

  1. Metadata. The CLI reads release metadata from the unContainer registry: the stable release, or the tag you pass with --to.
  2. Source. Each download URL must be the exact GitHub Releases address for that tag. Anything else is rejected, along with a size or SHA-256 that isn’t well formed.
  3. Bytes. Files download to a staging directory and must match the expected size and SHA-256 before anything is extracted.
  4. Swap. The new binary replaces the old one with a single rename, and only if the installed binary didn’t change in the meantime. A new image revision is activated together with the CLI.
Source checkouts. Updating the CLI replaces the standalone binary that the installer put in place. Running from a source checkout with bun, update --check still shows the plan, but applying a CLI update fails: pull and rebuild instead.

The registry lists every release and image with its checksums, and exposes them as static JSON at /v1/index.json.