File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
core/testcontainers/compose Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -139,6 +139,8 @@ class DockerCompose:
139
139
The list of services to use from this DockerCompose.
140
140
client_args:
141
141
arguments to pass to docker.from_env()
142
+ docker_command_path:
143
+ The docker compose command to run.
142
144
143
145
Example:
144
146
@@ -195,7 +197,7 @@ def docker_compose_command(self) -> list[str]:
195
197
196
198
@cached_property
197
199
def compose_command_property (self ) -> list [str ]:
198
- 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" ]
199
201
if self .compose_file_name :
200
202
for file in self .compose_file_name :
201
203
docker_compose_cmd += ["-f" , file ]
You can’t perform that action at this time.
0 commit comments