We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc02f94 commit 0ae704aCopy full SHA for 0ae704a
core/testcontainers/compose/compose.py
@@ -139,6 +139,8 @@ class DockerCompose:
139
The list of services to use from this DockerCompose.
140
client_args:
141
arguments to pass to docker.from_env()
142
+ docker_command_path:
143
+ The docker compose command to run.
144
145
Example:
146
@@ -195,7 +197,7 @@ def docker_compose_command(self) -> list[str]:
195
197
196
198
@cached_property
199
def compose_command_property(self) -> list[str]:
- docker_compose_cmd = [self.docker_command_path or "docker", "compose"]
200
+ docker_compose_cmd = [self.docker_command_path] if self.docker_command_path else ["docker", "compose"]
201
if self.compose_file_name:
202
for file in self.compose_file_name:
203
docker_compose_cmd += ["-f", file]
0 commit comments