We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1753441 commit c04f8b4Copy full SHA for c04f8b4
src/api/docker.ts
@@ -196,7 +196,8 @@ export function killContainer(id: string): Promise<void> {
196
if (containerInfo.State.Status === 'exited') {
197
return container.remove();
198
} else if (containerInfo.State.Status === 'running') {
199
- return container.remove({ force: true });
+ return container.stop()
200
+ .then(container => container.remove());
201
} else {
202
return Promise.resolve();
203
}
0 commit comments