mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-12 09:41:11 +00:00
fix(qa-lab): tear down previous docker stack before starting new one
This commit is contained in:
@@ -189,6 +189,19 @@ export async function runQaDockerUp(
|
||||
});
|
||||
|
||||
const composeFile = path.join(outputDir, "docker-compose.qa.yml");
|
||||
|
||||
// Tear down any previous stack from this compose file so ports are freed
|
||||
// and we get a clean restart every time.
|
||||
try {
|
||||
await runCommand(
|
||||
"docker",
|
||||
["compose", "-f", composeFile, "down", "--remove-orphans"],
|
||||
repoRoot,
|
||||
);
|
||||
} catch {
|
||||
// First run or already stopped — ignore.
|
||||
}
|
||||
|
||||
const composeArgs = ["compose", "-f", composeFile, "up"];
|
||||
if (!params.usePrebuiltImage) {
|
||||
composeArgs.push("--build");
|
||||
|
||||
Reference in New Issue
Block a user