Skip to content

docker compose v2 #4137

Closed
Closed

Description

@DRKolev-code

Describe the bug
I think there is a small bug in the _get_compose_cmd_prefix inside _SageMakerContainer. It looks for a v2 inside the version string of docker-compose and if it finds it it assumes we have docker-compose v2. The issue is if you have installed docker-compose on MacOs via brew then the version string is without v.

To reproduce
brew install docker-compose
mkdir -p ~/.docker/cli-plugins
ln -sfn /opt/homebrew/opt/docker-compose/bin/docker-compose ~/.docker/cli-plugins/docker-compose

Expected behavior
It should detect that we do have docker-compose v2.

Screenshots or logs
image

System information
MacOs
docker-compose via brew

Activity

  1. self-assigned this
    on Feb 3, 2025
  2. added a commit that references this issue on Sep 1, 2026
    ef82992
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions