Skip to content

Commit 769b7b6

Browse files
authored
fix(core): Added 'compose' in compose_command_property (#879)
If docker_command_path is specified, 'compose' is not appended, which causes all of DockerCompose to not work. This issue was found when attempting to use podman.
1 parent 10089f6 commit 769b7b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/testcontainers/compose/compose.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ def docker_compose_command(self) -> list[str]:
247247

248248
@cached_property
249249
def compose_command_property(self) -> list[str]:
250-
docker_compose_cmd = [self.docker_command_path] if self.docker_command_path else ["docker", "compose"]
250+
docker_compose_cmd = [self.docker_command_path, "compose"] if self.docker_command_path else ["docker", "compose"]
251251
if self.compose_file_name:
252252
for file in self.compose_file_name:
253253
docker_compose_cmd += ["-f", file]

0 commit comments

Comments
 (0)