jdx/mise · error

--engine podman requested but `podman` was not found on PATH

Error message

--engine podman requested but `podman` was not found on PATH

What it means

`mise oci run --engine podman` requires the podman binary to be discoverable on PATH. select_engine uses file::which to probe; if podman is absent, mise bails immediately rather than falling back, because the user explicitly requested that engine.

Solutions

  1. Install podman (e.g. `brew install podman` or `apt install podman`) and ensure it's on PATH
  2. Omit --engine to let mise auto-select an available engine (checks podman, then docker)
  3. Use --engine docker if Docker is installed instead

Example fix

// before
mise oci run --engine podman ...
// after
mise oci run ...
# or: brew install podman && mise oci run --engine podman ...
Defensive patterns

Strategy: fallback

Validate before calling

command -v podman >/dev/null || { echo 'podman not found'; exit 1; }

Try / catch

mise oci run --engine podman ... || mise oci run ...  # fallback to auto/docker

Prevention

When it happens

Trigger: Running `mise oci run --engine podman ...` (or the equivalent Engine::Podman request) on a machine where `podman` is not installed or not on PATH.

Common situations: Podman not installed (macOS without podman machine setup, minimal Linux images, CI runners with only Docker), or podman installed outside PATH in a non-login shell.

Related errors


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

Appendix: source

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

        let status = run_result?;
        if let Some(code) = status.code() {
            if code != 0 {
                return Err(crate::request_exit(code));
            }
        } else if !status.success() {
            bail!("{engine_bin} exited abnormally: {status:?}");
        }
        Ok(())
    }
}

fn select_engine(requested: Engine) -> Result<Engine> {
    match requested {
        Engine::Podman => {
            if file::which("podman").is_some() {
                Ok(Engine::Podman)
            } else {
                bail!("--engine podman requested but `podman` was not found on PATH")
            }
        }
        Engine::Docker => {
            if file::which("docker").is_none() {
                bail!("--engine docker requested but `docker` was not found on PATH");
            }
            Ok(Engine::Docker)
        }
        Engine::Auto => {
            if file::which("podman").is_some() {
                Ok(Engine::Podman)
            } else if file::which("docker").is_some() {
                Ok(Engine::Docker)
            } else {
                bail!("no supported container engine found. Install podman or docker.")
            }
        }
    }

View on GitHub (pinned to 533346cc37)