Setting COMPOSE_COMPATIBILITY
flag changes behavior of separators and break Compose v2 integration
#840
Labels
bug
Something isn't working
Expected Behaviour
The separators for docker container names when using docker compose should be uniform, either
_
or-
.Actual Behaviour
Currently,
testcontainers-node
has no way to set--compatibility
on the docker compose client. I have two environments, one in whichdocker-compose
is installed and in one wheredocker-compose
is not installed. In the environment wheredocker-compose
is installed, an env variableCOMPOSE_COMPATIBILITY
is set. This changes the separators from-
to_
for docker containers.With Docker version
2.29.2-desktop.2
, there is no way to accessdocker-compose
(it seems to have been removed) and the only separator supported is-
.Testcontainer Logs
Attached two sets of logs.WithoutComposeComptability.txt
WithComposeCompatibility.txt
Steps to Reproduce
@kiview was able to reproduce this with
COMPOSE_COMPATIBILITY
turned on.Environment Information
2.29.2-desktop.2
on Mac. docker-compose version 1.28.2, build 67630359 and Docker Compose version v2.18.1 in LinuxThe text was updated successfully, but these errors were encountered: