{"record":{"id":"c9e19d91bb070707","repo":"jdx/mise","slug":"container-engine-command-docker-was-not-found-s","errorCode":null,"errorMessage":"container engine command 'docker' was not found; set engine_command explicitly","messagePattern":"container engine command 'docker' was not found; set engine_command explicitly","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/system/compose.rs","lineNumber":921,"sourceCode":"            }\n            bail!(\n                \"legacy 'docker-compose' v1 is unsupported; install Docker Compose v2 or set command to a compatible frontend\"\n            );\n        }\n        Ok(None)\n    }\n\n    fn resolved_engine_command(&self) -> Result<Vec<String>> {\n        if !self.engine_command.is_empty() {\n            return resolve_command(&self.engine_command);\n        }\n        if let Some(command) = engine_command_from_compose_command(&self.command) {\n            return resolve_command(command);\n        }\n        if let Some(docker) = crate::file::which(\"docker\") {\n            return Ok(vec![docker.to_string_lossy().to_string()]);\n        }\n        bail!(\"container engine command 'docker' was not found; set engine_command explicitly\")\n    }\n\n    fn configured_engine_command(&self) -> Vec<String> {\n        if !self.engine_command.is_empty() {\n            return self.engine_command.clone();\n        }\n        engine_command_from_compose_command(&self.command)\n            .map(<[String]>::to_vec)\n            .unwrap_or_else(|| vec![\"docker\".to_string()])\n    }\n}\n\nfn compose_plugin_available(docker: &str) -> bool {\n    Command::new(docker)\n        .args([\"compose\", \"version\"])\n        .envs(compose_env())\n        .output()\n        .is_ok_and(|output| output.status.success())","sourceCodeStart":903,"sourceCodeEnd":939,"githubUrl":"https://github.com/jdx/mise/blob/533346cc374382b41ec5ff70536252b2e96e725c/src/system/compose.rs#L903-L939","documentation":"Thrown while resolving the container engine when no engine command could be found. After checking the configured compose command, `engine_command_from_compose_command`, and a PATH lookup for `docker`, mise falls back to a hardcoded 'docker' path and fails, telling you to set `engine_command` explicitly.","triggerScenarios":"`docker` is not installed or not on PATH (e.g. isolated e2e env, rootless container without docker), and no explicit `engine_command`/detectable compose command is configured.","commonSituations":"Docker Desktop not running/installed on a new machine; running inside a CI container without the docker CLI; podman users who never set `engine_command`.","solutions":["Install the Docker CLI or ensure `docker` is on PATH","Set `engine_command` in the compose config to point at your engine (e.g. podman)","Start Docker Desktop / the daemon if the CLI exists but the environment isn't set up"],"exampleFix":"# before\n[system.compose.myproj]\nservices = [\"db\"]\n# after\n[system.compose.myproj]\nservices = [\"db\"]\nengine_command = [\"podman\"]","handlingStrategy":"fallback","validationCode":"command -v docker || echo \"docker not found: set engine_command\"","typeGuard":null,"tryCatchPattern":"match resolve_engine() {\n    Err(e) if e.contains(\"was not found\") => {\n        eprintln!(\"install docker or set engine_command in the compose config\");\n    }\n    other => other,\n}","preventionTips":["Verify `docker` is installed and on PATH in the target environment","Set `engine_command` explicitly for podman or non-standard setups","Ensure Docker Desktop/daemon is started before running mise tasks"],"tags":["docker","environment","missing-binary"],"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"}