jdx/mise · error

legacy 'docker-compose' v1 is unsupported; install Docker…

Error message

legacy 'docker-compose' v1 is unsupported; install Docker Compose v2 or set command to a compatible frontend

What it means

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.

Solutions

  1. Install Docker Compose v2 (`docker compose` plugin or standalone binary) and remove/shadow the v1 binary
  2. Explicitly set the project's `command` to a Compose v2 compatible frontend

Example fix

# before
[system.compose.myproj]
# relies on docker-compose v1 on PATH
# after
[system.compose.myproj]
command = ["docker", "compose"]
Defensive patterns

Strategy: validation

Validate before calling

# detect compose v1 before running
docker-compose version | grep -q 'v2' || echo "unsupported v1"

Prevention

When it happens

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

Common situations: Old CI images or macOS setups with Docker Toolbox-era docker-compose v1; v1 installed via pip while the v2 plugin is missing.

Understand the failure class

Background: "is deprecated and will be removed" — deprecation warnings for old API names, keywords, and options, and how to migrate before the removal release — this error's family across 29 libraries.

Related errors


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

Appendix: source

Thrown at src/system/compose.rs:904

            return resolve_command(&self.command);
        }
        self.detected_compose_command()?
            .ok_or_else(|| eyre!("neither 'docker compose' nor 'docker-compose' was found"))
    }

    fn detected_compose_command(&self) -> Result<Option<Vec<String>>> {
        if let Some(docker) = crate::file::which("docker") {
            let docker = docker.to_string_lossy().to_string();
            if compose_plugin_available(&docker) {
                return Ok(Some(vec![docker, "compose".to_string()]));
            }
        }
        if let Some(compose) = crate::file::which("docker-compose") {
            let compose = compose.to_string_lossy().to_string();
            if standalone_compose_v2_available(&compose) {
                return Ok(Some(vec![compose]));
            }
            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")
    }

View on GitHub (pinned to 533346cc37)