Skip to content

Commit ae6202e

Browse files
committed
fix(container): stop container and cleanup after build properly
1 parent 989a307 commit ae6202e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/docker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ export function killContainer(id: string): Promise<void> {
196196
if (containerInfo.State.Status === 'exited') {
197197
return container.remove();
198198
} else if (containerInfo.State.Status === 'running') {
199-
return container.kill();
199+
return container.stop().then(c => c.remove());
200200
} else {
201201
return Promise.resolve();
202202
}

0 commit comments

Comments
 (0)