Permalink
Browse files

fix(container): stop container and cleanup after build properly

  • Loading branch information...
jkuri committed Nov 11, 2017
1 parent 989a307 commit ae6202ef3ab6aa5ff72a834ee0894066b78a7cd0
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/api/docker.ts
@@ -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();
}

0 comments on commit ae6202e

Please sign in to comment.