{"record":{"id":"bc0a905822a3f531","repo":"jdx/mise","slug":"engine-podman-requested-but-podman-was-not-fou","errorCode":null,"errorMessage":"--engine podman requested but `podman` was not found on PATH","messagePattern":"--engine podman requested but `podman` was not found on PATH","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/cli/oci/run.rs","lineNumber":232,"sourceCode":"        let status = run_result?;\n        if let Some(code) = status.code() {\n            if code != 0 {\n                return Err(crate::request_exit(code));\n            }\n        } else if !status.success() {\n            bail!(\"{engine_bin} exited abnormally: {status:?}\");\n        }\n        Ok(())\n    }\n}\n\nfn select_engine(requested: Engine) -> Result<Engine> {\n    match requested {\n        Engine::Podman => {\n            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    }","sourceCodeStart":214,"sourceCodeEnd":250,"githubUrl":"https://github.com/jdx/mise/blob/533346cc374382b41ec5ff70536252b2e96e725c/src/cli/oci/run.rs#L214-L250","documentation":"`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.","triggerScenarios":"Running `mise oci run --engine podman ...` (or the equivalent Engine::Podman request) on a machine where `podman` is not installed or not on PATH.","commonSituations":"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.","solutions":["Install podman (e.g. `brew install podman` or `apt install podman`) and ensure it's on PATH","Omit --engine to let mise auto-select an available engine (checks podman, then docker)","Use --engine docker if Docker is installed instead"],"exampleFix":"// before\nmise oci run --engine podman ...\n// after\nmise oci run ...\n# or: brew install podman && mise oci run --engine podman ...","handlingStrategy":"fallback","validationCode":"command -v podman >/dev/null || { echo 'podman not found'; exit 1; }","typeGuard":null,"tryCatchPattern":"mise oci run --engine podman ... || mise oci run ...  # fallback to auto/docker","preventionTips":["Install podman wherever oci run is used, or omit --engine to auto-select","Check PATH in CI and non-login shells where podman may be missing","On macOS, initialize the podman machine before scripted runs"],"tags":["oci","podman","command-not-found"],"backgroundTag":"command-not-found","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"}