Skip to content

Commit

Permalink
fix(container): stop container and cleanup after build properly
Browse files Browse the repository at this point in the history
  • Loading branch information
jkuri committed Nov 11, 2017
1 parent 989a307 commit ae6202e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/docker.ts
Expand Up @@ -196,7 +196,7 @@ export function killContainer(id: string): Promise<void> {
if (containerInfo.State.Status === 'exited') {
return container.remove();
} else if (containerInfo.State.Status === 'running') {
return container.kill();
return container.stop().then(c => c.remove());
} else {
return Promise.resolve();
}
Expand Down

0 comments on commit ae6202e

Please sign in to comment.