Skip to content

Docker compose version output change #528

Open

Description

@i-defranca

Describe the bug

The install script checks the docker compose version output against the literal string "Docker Compose version v2" and as for now, at least on arch (EndeavourOS) I get the following output, which fails the check and stops the installation process: Docker Compose version 2.*

Kool version and environment

I'm using the current script available at https://kool.dev/install.

To Reproduce

Just follow the docs and try to install using curl | bash. Downloading the script first and removing the "v" from the string is enough for the it to run as expected.

Screenshots

Image Image Image

Additional context

I don't know in which version the output has changed, my current Docker Compose version is 2.40.2

Activity

  1. FelipeEstevanatto commented on Apr 2, 2026

    @FelipeEstevanatto
    Contributor

    Apparently, the version check in some distros can come up without the v in v2
    I also checked on my machine because I have Docker Compose version v5.1.0, and the bash install also fails in the same manner, even with everything working fine in the newer version.
    To fix these cases, the script would need to use a more permissive regex, like:

    # ...
    composeVersion=$(docker compose version || true)
    regex="Docker Compose version v?([25]|[1-9][0-9]+)\."
    
    if [[ ! "$composeVersion" =~ $regex ]]; then
    	builtin echo -e "${start_error}We could not identify Composer V2 or V5 installed.${end_error}"
    # ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions