Skip to content

Commit 65e33be

Browse files
committed
cleaner way to rm container
1 parent 826746f commit 65e33be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/packages/project-runner/run/podman.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,12 @@ export async function stop({ project_id }) {
101101
if (child != null && child.exitCode == null) {
102102
try {
103103
await podman([
104-
"stop",
104+
"rm",
105+
"-f",
105106
"-t",
106107
`${GRACE_PERIOD / 1000}`,
107108
`project-${project_id}`,
108109
]);
109-
await podman(["rm", `project-${project_id}`]);
110110
} catch {}
111111
delete children[project_id];
112112
}

0 commit comments

Comments
 (0)