Skip to content
This repository was archived by the owner on Apr 29, 2024. It is now read-only.
This repository was archived by the owner on Apr 29, 2024. It is now read-only.

Support docker-compose 2.x #124

@candidtim

Description

@candidtim

docker-compose 2.x changed the naming convention for containers: it uses dash - to separate the project and container names, instead of underscore _ that was used in 1.x. As a consequence, getDockerContainerId cannot find the containers because it assume the older naming convention.

This is a proposal to support both naming conventions, probably using a flag to switch between the two.

Relevant code from "docker compose":
https://github.com/docker/compose/blob/0062703bea796eca5b5f78a4779fa166cc18619c/pkg/compose/compose.go#L36

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