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 efd99d3 commit 925684dCopy full SHA for 925684d
src/api/docker.ts
@@ -180,7 +180,9 @@ export function killContainer(id: string): Promise<void> {
180
container = docker.getContainer(id);
181
container.inspect()
182
.then(containerInfo => {
183
- if (containerInfo.State.Status === 'running') {
+ if (containerInfo.State.Status === 'exited') {
184
+ return container.remove();
185
+ } else if (containerInfo.State.Status === 'running') {
186
return container.kill().then(() => container.remove());
187
} else {
188
return Promise.resolve();
0 commit comments