jdx/mise · error

no supported container engine found. Install podman or…

Error message

no supported container engine found. Install podman or docker.

What it means

mise's `oci run` command needs a container engine to execute OCI images. When Engine::Auto is selected (the default), it probes PATH for podman first, then docker; if neither binary is found it aborts with this message instead of attempting a run.

Solutions

  1. Install podman (preferred) or docker and ensure it is on PATH
  2. If an engine is installed, fix PATH so `which podman`/`which docker` succeeds
  3. Use an environment/image that ships a container engine (e.g. docker:dind in CI)

Example fix

// before
$ mise oci run my-image
error: no supported container engine found. Install podman or docker.
// after
$ sudo apt-get install -y podman   # or: brew install podman
$ mise oci run my-image
Defensive patterns

Strategy: validation

Validate before calling

if !command -v podman >/dev/null 2>&1 && !command -v docker >/dev/null 2>&1; then echo 'Install podman or docker first'; exit 1; fi

Prevention

When it happens

Trigger: Running `mise oci run` (or anything that resolves Engine::Auto via select_engine) on a machine where neither `podman` nor `docker` is installed, or where both exist but are not on PATH for the current environment.

Common situations: Fresh CI containers or devcontainers without a container runtime; docker not installed on Linux servers; running mise inside an environment with a sanitized PATH (e.g. e2e `env -i`) that drops /usr/bin or the docker install location.

Understand the failure class

Background: "not installed", "pip install", "required for": how missing-dependency errors surface across open-source libraries — this error's family across 34 libraries.

Related errors


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

Appendix: source

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

            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.")
            }
        }
    }
}

fn engine_name(engine: Engine) -> &'static str {
    match engine {
        Engine::Podman => "podman",
        Engine::Docker => "docker",
        Engine::Auto => unreachable!("select_engine resolves Auto to a concrete engine"),
    }
}

/// 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

View on GitHub (pinned to 533346cc37)