jdx/mise · error

: index.json lists manifests; multi-manifest layouts are…

Error message

{}: index.json lists {} manifests; multi-manifest layouts are not supported

What it means

Thrown during `push_image` when `index.json` lists more than one manifest. The tool only supports single-manifest OCI layouts (what `mise oci build` always produces) and refuses multi-manifest (multi-arch index) layouts.

Solutions

  1. Push a single-platform image: build one manifest per platform and push each separately.
  2. Use `mise oci build` to regenerate a single-manifest layout in a clean directory.
  3. If multi-arch is required, push each manifest via this tool and assemble the index with another tool (e.g. `docker manifest create`).

Example fix

// before: multi-manifest index
{ "manifests": [ {"digest": "sha256:aaa"}, {"digest": "sha256:bbb"} ] }
// after: keep only one manifest (or split into per-platform pushes)
{ "manifests": [ {"mediaType": "application/vnd.oci.image.manifest.v1+json", "digest": "sha256:aaa", "size": 1234} ] }
Defensive patterns

Strategy: validation

Validate before calling

let index: serde_json::Value = serde_json::from_slice(
    &std::fs::read(image_dir.join("index.json"))?,
)?;
let n = index["manifests"].as_array().map(|a| a.len()).unwrap_or(0);
if n > 1 { eprintln!("multi-manifest layout detected ({n}); split per-platform before pushing"); }

Prevention

When it happens

Trigger: Pushing an image directory whose index.json was produced by another tool (e.g. `podman save`-style layouts, buildctl, or manual multi-arch assembly) containing multiple manifest descriptors.

Common situations: Trying to push a multi-arch index built with docker buildx / podman manifest directly from its OCI layout directory; reusing an output directory that accumulated manifests across builds.

Understand the failure class

Background: UnsupportedOperationException and "is not supported" errors: when a library deliberately refuses a call — this error's family across 30 libraries.

Related errors


AI-assisted analysis of jdx/mise@533346cc37 (2026-09-17). Data as JSON: /api/errors/cca9a8dbb3efd71b. Report an issue: GitHub.

Appendix: source

Thrown at src/oci/registry.rs:949

    update_index: bool,
) -> Result<PushSummary> {
    eyre::ensure!(
        !crate::config::Settings::get().offline(),
        "offline mode is enabled"
    );
    let r = Reference::parse(reference)?;
    let layout = ImageLayout {
        root: image_dir.to_path_buf(),
    };

    // Resolve the layout's single manifest. `mise oci build` always writes
    // exactly one manifest into index.json.
    let index_bytes = crate::file::read(image_dir.join("index.json"))?;
    let index: ImageIndex = serde_json::from_slice(&index_bytes).wrap_err("parsing index.json")?;
    let manifest_desc = match index.manifests.as_slice() {
        [one] => one,
        [] => bail!("{}: index.json lists no manifests", image_dir.display()),
        many => bail!(
            "{}: index.json lists {} manifests; multi-manifest layouts are not supported",
            image_dir.display(),
            many.len()
        ),
    };
    let manifest_bytes = layout.read_blob(&manifest_desc.digest)?;
    let manifest: ImageManifest =
        serde_json::from_slice(&manifest_bytes).wrap_err("parsing image manifest blob")?;

    // Cross-repo mount source: the base image's repository, when it lives on
    // the destination registry (and isn't the destination repo itself).
    let mount_from = manifest
        .annotations
        .get(ANNOTATION_BASE_NAME)
        .and_then(|name| Reference::parse(name).ok())
        .filter(|base| base.registry == r.registry && base.repository != r.repository)
        .map(|base| base.repository);

View on GitHub (pinned to 533346cc37)