jdx/mise · error

container engine command 'docker' was not found; set…

Error message

container engine command 'docker' was not found; set engine_command explicitly

What it means

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.

Solutions

  1. Install the Docker CLI or ensure `docker` is on PATH
  2. Set `engine_command` in the compose config to point at your engine (e.g. podman)
  3. Start Docker Desktop / the daemon if the CLI exists but the environment isn't set up

Example fix

# before
[system.compose.myproj]
services = ["db"]
# after
[system.compose.myproj]
services = ["db"]
engine_command = ["podman"]
Defensive patterns

Strategy: fallback

Validate before calling

command -v docker || echo "docker not found: set engine_command"

Try / catch

match resolve_engine() {
    Err(e) if e.contains("was not found") => {
        eprintln!("install docker or set engine_command in the compose config");
    }
    other => other,
}

Prevention

When it happens

Trigger: `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.

Common situations: 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`.

Related errors


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

Appendix: source

Thrown at src/system/compose.rs:921

            }
            bail!(
                "legacy 'docker-compose' v1 is unsupported; install Docker Compose v2 or set command to a compatible frontend"
            );
        }
        Ok(None)
    }

    fn resolved_engine_command(&self) -> Result<Vec<String>> {
        if !self.engine_command.is_empty() {
            return resolve_command(&self.engine_command);
        }
        if let Some(command) = engine_command_from_compose_command(&self.command) {
            return resolve_command(command);
        }
        if let Some(docker) = crate::file::which("docker") {
            return Ok(vec![docker.to_string_lossy().to_string()]);
        }
        bail!("container engine command 'docker' was not found; set engine_command explicitly")
    }

    fn configured_engine_command(&self) -> Vec<String> {
        if !self.engine_command.is_empty() {
            return self.engine_command.clone();
        }
        engine_command_from_compose_command(&self.command)
            .map(<[String]>::to_vec)
            .unwrap_or_else(|| vec!["docker".to_string()])
    }
}

fn compose_plugin_available(docker: &str) -> bool {
    Command::new(docker)
        .args(["compose", "version"])
        .envs(compose_env())
        .output()
        .is_ok_and(|output| output.status.success())

View on GitHub (pinned to 533346cc37)