{"record":{"id":"f4739dd9de0e39d7","repo":"jdx/mise","slug":"legacy-docker-compose-v1-is-unsupported-install","errorCode":null,"errorMessage":"legacy 'docker-compose' v1 is unsupported; install Docker Compose v2 or set command to a compatible frontend","messagePattern":"legacy 'docker-compose' v1 is unsupported; install Docker Compose v2 or set command to a compatible frontend","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/system/compose.rs","lineNumber":904,"sourceCode":"            return resolve_command(&self.command);\n        }\n        self.detected_compose_command()?\n            .ok_or_else(|| eyre!(\"neither 'docker compose' nor 'docker-compose' was found\"))\n    }\n\n    fn detected_compose_command(&self) -> Result<Option<Vec<String>>> {\n        if let Some(docker) = crate::file::which(\"docker\") {\n            let docker = docker.to_string_lossy().to_string();\n            if compose_plugin_available(&docker) {\n                return Ok(Some(vec![docker, \"compose\".to_string()]));\n            }\n        }\n        if let Some(compose) = crate::file::which(\"docker-compose\") {\n            let compose = compose.to_string_lossy().to_string();\n            if standalone_compose_v2_available(&compose) {\n                return Ok(Some(vec![compose]));\n            }\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    }","sourceCodeStart":886,"sourceCodeEnd":922,"githubUrl":"https://github.com/jdx/mise/blob/533346cc374382b41ec5ff70536252b2e96e725c/src/system/compose.rs#L886-L922","documentation":"Thrown while auto-detecting the compose command when the only candidate found on PATH is a legacy `docker-compose` v1 binary that does not behave like Compose v2. mise only supports the v2 frontend (`docker compose` or a standalone v2 `docker-compose`), so it fails with instructions instead of running an unsupported version.","triggerScenarios":"`docker-compose` (v1, the Python-based tool) is installed and no `docker` CLI with the `compose` plugin is found; `standalone_compose_v2_available` returns false for the binary on PATH.","commonSituations":"Old CI images or macOS setups with Docker Toolbox-era docker-compose v1; v1 installed via pip while the v2 plugin is missing.","solutions":["Install Docker Compose v2 (`docker compose` plugin or standalone binary) and remove/shadow the v1 binary","Explicitly set the project's `command` to a Compose v2 compatible frontend"],"exampleFix":"# before\n[system.compose.myproj]\n# relies on docker-compose v1 on PATH\n# after\n[system.compose.myproj]\ncommand = [\"docker\", \"compose\"]","handlingStrategy":"validation","validationCode":"# detect compose v1 before running\ndocker-compose version | grep -q 'v2' || echo \"unsupported v1\"","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Install Docker Compose v2 and uninstall v1","Set `command = [\"docker\", \"compose\"]` explicitly in configs","Pin Compose v2 in CI images"],"tags":["docker-compose","version-compatibility","unsupported"],"backgroundTag":"deprecated-api-usage","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"}