jdx/mise · error

podman pull succeeded but printed no image ID

Error message

podman pull succeeded but printed no image ID

What it means

After a successful `podman pull --quiet`, mise expects the image ID on stdout. If pull reports success (exit 0) but stdout is empty after trimming, mise treats this as an internal invariant violation because it cannot reference the loaded image afterwards.

Solutions

  1. Run `podman pull --quiet <src>` manually and verify it prints an image ID
  2. Check that `podman` on PATH is the real binary, not a wrapper swallowing stdout
  3. Update or reinstall podman to a version whose --quiet output matches upstream behavior

Example fix

// diagnose
$ podman pull --quiet alpine:latest   # should print a 64-char image ID
$ type podman                          # ensure it's not a wrapper
// then retry
$ mise oci run alpine:latest
Defensive patterns

Strategy: fallback

Validate before calling

id=$(podman pull --quiet "$IMAGE") && [ -n "$id" ] || echo 'podman --quiet output unexpected'

Prevention

When it happens

Trigger: podman exits 0 but prints nothing on stdout — e.g. unusual podman versions/wrappers that alter `--quiet` output, or stdout redirected/intercepted by a shim.

Common situations: Podman wrapper scripts or aliased binaries swallowing stdout; mismatched or very new/old podman versions changing quiet-mode behavior; storage plugin anomalies.

Understand the failure class

Background: "This is a bug, please report it": internal invariant violations, unreachable panics, and SNH errors explained — this error's family across 47 libraries.

Related errors


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

Appendix: source

Thrown at src/cli/oci/run.rs:287

fn load_image(engine: Engine, image_dir: &Path) -> Result<String> {
    match engine {
        Engine::Podman => {
            let src = format!("oci:{}", image_dir.display());
            let out = Command::new("podman")
                .args(["pull", "--quiet", &src])
                .output()
                .wrap_err("running `podman pull`")?;
            if !out.status.success() {
                let stderr = String::from_utf8_lossy(&out.stderr);
                bail!("podman pull failed: {}: {stderr}", out.status);
            }
            // `podman pull --quiet` prints just the image ID on stdout.
            let id = String::from_utf8(out.stdout)
                .wrap_err("podman pull produced non-utf8 output")?
                .trim()
                .to_string();
            if id.is_empty() {
                bail!("podman pull succeeded but printed no image ID");
            }
            Ok(id)
        }
        Engine::Docker => {
            // Stream the layout into `docker load` as a docker-archive. Pick
            // a per-invocation tag so concurrent `mise oci run` calls don't
            // clobber each other — a shared `mise-oci:run` tag would
            // otherwise race: the second load would overwrite the first
            // image before the first container started.
            let tag = format!(
                "mise-oci:run-{}-{}",
                std::process::id(),
                std::time::SystemTime::now()
                    .duration_since(std::time::UNIX_EPOCH)
                    .map(|d| d.as_nanos())
                    .unwrap_or(0)
            );
            crate::oci::docker_archive::load_into_docker(image_dir, &tag)?;

View on GitHub (pinned to 533346cc37)