Docker version: 26.1.3 Docker Compose version: v2.20.2 The shouldWorkWithProfiles method test fails with the following log:

java.lang.AssertionError: Did not expect service 'redis2', but found it in [[junit-15645479379355523684-redis1-1, junit-15645479379355523684-redis2-1, junit-15645479379355523684-redis3-1]]
    at org.springframework.boot.docker.compose.core.DefaultDockerComposeIntegrationTests.assertThatDoesNotContainService(DefaultDockerComposeIntegrationTests.java:104)
    at org.springframework.boot.docker.compose.core.DefaultDockerComposeIntegrationTests.shouldWorkWithProfiles(DefaultDockerComposeIntegrationTests.java:71)
    at java.base/java.lang.reflect.Method.invoke(Method.java:580)
    at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
    at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)