diff --git a/backend/stack.ts b/backend/stack.ts index fbce5002..ed129d64 100644 --- a/backend/stack.ts +++ b/backend/stack.ts @@ -461,6 +461,12 @@ export class Stack { if (exitCode !== 0) { throw new Error("Failed to restart, please check the terminal output for more information."); } + + exitCode = await Terminal.exec(this.server, socket, terminalName, "docker", [ "image", "prune", "--all", "--force" ], this.path); + if (exitCode !== 0) { + throw new Error("Failed to restart, please check the terminal output for more information."); + } + return exitCode; }