jdx/mise · error

podman pull failed

Error message

podman pull failed: {}: {stderr}

What it means

When the selected container engine is podman, mise loads the OCI image by running `podman pull --quiet <src>`. If the command exits non-zero, mise surfaces the exit status and the full podman stderr so the underlying pull failure (bad reference, auth, network, registry) is visible.

Solutions

  1. Run `podman pull <src>` manually to see the full error
  2. Log in to the registry: `podman login <registry>`
  3. Fix the image reference (registry/namespace/tag) in the mise invocation
  4. Check network/proxy/TLS settings between host and registry

Example fix

// before
mise oci run ghcr.io/my-org/my-image:does-not-exist
// after
podman pull ghcr.io/my-org/my-image:does-not-exist  # diagnose
mise oci run ghcr.io/my-org/my-image:v1.2.3
Defensive patterns

Strategy: retry

Validate before calling

podman pull "$IMAGE" || { echo "pull failed for $IMAGE"; exit 1; }

Try / catch

try { execSync(`mise oci run ${image}`) } catch (e) { const stderr = e.stderr?.toString() ?? ''; if (stderr.includes('authentication required')) { execSync(`podman login ${registry}`); /* retry once */ } else throw e }

Prevention

When it happens

Trigger: `mise oci run <image>` where podman's `pull --quiet` of the source image fails: nonexistent tag, unreachable registry, missing credentials for a private registry, TLS/proxy problems, or podman daemon/storage errors.

Common situations: Typo in image reference or tag; private registry requiring `podman login`; corporate proxy blocking registry access; offline CI; registry rate limits.

Related errors


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

Appendix: source

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

/// Load the OCI layout at `image_dir` into the given engine and return the
/// image reference that should be passed to the engine's `run` subcommand.
///
/// We don't rely on `podman tag` here because `podman tag` takes an image
/// name/ID (not a transport reference), and the image name that `podman
/// pull oci:<dir>` assigns depends on the layout's `ref.name` annotation
/// and the podman version. Capturing the image ID printed by
/// `podman pull --quiet` is deterministic across versions.
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!(

View on GitHub (pinned to 533346cc37)