{"record":{"id":"aee854b071a54ead","repo":"jdx/mise","slug":"no-supported-container-engine-found-install-podma","errorCode":null,"errorMessage":"no supported container engine found. Install podman or docker.","messagePattern":"no supported container engine found\\. Install podman or docker\\.","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/cli/oci/run.rs","lineNumber":247,"sourceCode":"            if file::which(\"podman\").is_some() {\n                Ok(Engine::Podman)\n            } else {\n                bail!(\"--engine podman requested but `podman` was not found on PATH\")\n            }\n        }\n        Engine::Docker => {\n            if file::which(\"docker\").is_none() {\n                bail!(\"--engine docker requested but `docker` was not found on PATH\");\n            }\n            Ok(Engine::Docker)\n        }\n        Engine::Auto => {\n            if file::which(\"podman\").is_some() {\n                Ok(Engine::Podman)\n            } else if file::which(\"docker\").is_some() {\n                Ok(Engine::Docker)\n            } else {\n                bail!(\"no supported container engine found. Install podman or docker.\")\n            }\n        }\n    }\n}\n\nfn engine_name(engine: Engine) -> &'static str {\n    match engine {\n        Engine::Podman => \"podman\",\n        Engine::Docker => \"docker\",\n        Engine::Auto => unreachable!(\"select_engine resolves Auto to a concrete engine\"),\n    }\n}\n\n/// Load the OCI layout at `image_dir` into the given engine and return the\n/// image reference that should be passed to the engine's `run` subcommand.\n///\n/// We don't rely on `podman tag` here because `podman tag` takes an image\n/// name/ID (not a transport reference), and the image name that `podman","sourceCodeStart":229,"sourceCodeEnd":265,"githubUrl":"https://github.com/jdx/mise/blob/533346cc374382b41ec5ff70536252b2e96e725c/src/cli/oci/run.rs#L229-L265","documentation":"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.","triggerScenarios":"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.","commonSituations":"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.","solutions":["Install podman (preferred) or docker and ensure it is on PATH","If an engine is installed, fix PATH so `which podman`/`which docker` succeeds","Use an environment/image that ships a container engine (e.g. docker:dind in CI)"],"exampleFix":"// before\n$ mise oci run my-image\nerror: no supported container engine found. Install podman or docker.\n// after\n$ sudo apt-get install -y podman   # or: brew install podman\n$ mise oci run my-image","handlingStrategy":"validation","validationCode":"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","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Install podman or docker in your dev container/CI image","Verify container engines are on PATH in provisioning scripts","Pin a runtime in CI base images so every job has one"],"tags":["oci","container-engine","missing-dependency","podman","docker"],"backgroundTag":"missing-dependency","analyzedSha":"533346cc374382b41ec5ff70536252b2e96e725c","analyzedAt":"2026-09-17T13:35:38.149Z","contentChangedAt":"2026-09-17T13:35:38.149Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}