Skip to content

Docker compose version check outdated (v2 > v5)ย #7010

@Lulalaby

Description

@Lulalaby

Contribution guidelines

Checklist prior issue creation

  • I understand that failure to follow below instructions may cause this issue to be closed.
  • I understand that vague, incomplete or inaccurate information may cause this issue to be closed.
  • I understand that this form is intended solely for reporting software bugs and not for support-related inquiries.
  • I understand that all responses are voluntary and community-driven, and do not constitute commercial support.
  • I confirm that I have reviewed previous issues to ensure this matter has not already been addressed.
  • I confirm that my environment meets all prerequisite requirements as specified in the official documentation.

Description

Apparently mailcow's update script checks for v2.x docker compose versions.
Having the latest one (we're atm on v5.x) breaks the update script.

Image

Steps to reproduce:

  • Execute the install method mentioned in mailcow docks:
LATEST=$(curl -Ls -w %{url_effective} -o /dev/null https://github.com/docker/compose/releases/latest) && \
LATEST=${LATEST##*/} && \
curl -L https://github.com/docker/compose/releases/download/$LATEST/docker-compose-$(uname -s)-$(uname -m) > /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
  • Run ./update.sh
  • Observe the script breaking

Logs:

root@services:/opt/mailcow-dockerized# ./update.sh
Cannot find Docker Compose with a Version Higher than 2.X.X.
Please update/install it manually regarding to this doc site: https://docs.mailcow.email/install/
root@services:/opt/mailcow-dockerized# docker compose version
Docker Compose version v5.0.1
root@services:/opt/mailcow-dockerized# docker-compose version
Docker Compose version v5.0.1
root@services:/opt/mailcow-dockerized#

Which branch are you using?

nightly

Which architecture are you using?

x86_64

Operating System:

Debian GNU/Linux 12 (bookworm)

Server/VM specifications:

not applicable

Is Apparmor, SELinux or similar active?

not applicable

Virtualization technology:

not applicable

Docker version:

29.1.5

docker-compose version or docker compose version:

v5.0.1

mailcow version:

2025-12a

Reverse proxy:

apache2

Logs of git diff:

not applicable

Logs of iptables -L -vn:

not applicable

Logs of ip6tables -L -vn:

not applicable

Logs of iptables -L -vn -t nat:

not applicable

Logs of ip6tables -L -vn -t nat:

not applicable

DNS check:

not applicable

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions