Skip to content

Add support for docker compose in ssh command generation #5862

@thelovekesh

Description

@thelovekesh

Feature Request

Describe your use case and the problem you are facing

Starting from docker compose v2, docker has now included the compose functionality in the docker CLI and doesn't require explicitly installing the docker-compose plugin.

Ref: https://docs.docker.com/compose/migrate/#what-are-the-differences-between-compose-v1-and-compose-v2

Currently, the SSH generation command only builds commands by including docker-compose which might not be available on the user's machine and cause the command the fail.

Describe the solution you'd like

Incorporate the usage of docker compose command while the scheme is docker-compose and fallback to docker-compose in case docker compose command doesn't exist.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions