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

Description
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