Jelajahi Sumber

Fix deleting of stack #52

broetchenrackete36 1 tahun lalu
induk
melakukan
e942615c93
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      backend/stack.ts

+ 1 - 1
backend/stack.ts

@@ -149,7 +149,7 @@ export class Stack {
 
 
     async delete(socket?: DockgeSocket) : Promise<number> {
     async delete(socket?: DockgeSocket) : Promise<number> {
         const terminalName = getComposeTerminalName(this.name);
         const terminalName = getComposeTerminalName(this.name);
-        let exitCode = await Terminal.exec(this.server, socket, terminalName, "docker", [ "compose", "down", "--remove-orphans", "all" ], this.path);
+        let exitCode = await Terminal.exec(this.server, socket, terminalName, "docker", [ "compose", "down", "--remove-orphans", "--rmi", "all" ], this.path);
         if (exitCode !== 0) {
         if (exitCode !== 0) {
             throw new Error("Failed to delete, please check the terminal output for more information.");
             throw new Error("Failed to delete, please check the terminal output for more information.");
         }
         }