Skip to content

Commit facbdaf

Browse files
vsilentCopilot
andcommitted
fix(cli): use --file instead of -f for docker compose
The -f shorthand is not recognized by all Docker versions on CI runners. Use the long-form --file flag for docker compose -f / docker compose down -f to ensure compatibility across Docker Engine versions. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 50b5c8d commit facbdaf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/cli/install_runner.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ impl DeployStrategy for LocalDeploy {
179179
args.push("--env-file".into());
180180
args.push(env_file_path.to_string_lossy().to_string());
181181
}
182-
args.push("-f".into());
182+
args.push("--file".into());
183183
args.push(compose_path.clone());
184184

185185
if context.dry_run {
@@ -235,7 +235,7 @@ impl DeployStrategy for LocalDeploy {
235235
args.push("--env-file".into());
236236
args.push(env_file_path.to_string_lossy().to_string());
237237
}
238-
args.push("-f".into());
238+
args.push("--file".into());
239239
args.push(compose_path);
240240
args.push("down".into());
241241
args.push("--volumes".into());

0 commit comments

Comments
 (0)