mirror of https://github.com/docker/docs.git
Fix bug where destroying a stopped container would fail
Signed-off-by: Jeffrey Morgan <jmorganca@gmail.com>
This commit is contained in:
parent
0489c8a7ca
commit
2af6a595a9
|
|
@ -307,12 +307,12 @@ export default {
|
|||
|
||||
let container = this.client.getContainer(name);
|
||||
container.unpause(function () {
|
||||
container.kill(function (error) {
|
||||
if (error) {
|
||||
containerServerActions.error({name, error});
|
||||
return;
|
||||
}
|
||||
container.remove(function () {
|
||||
container.kill(function () {
|
||||
container.remove(function (error) {
|
||||
if (error) {
|
||||
containerServerActions.error({name, error});
|
||||
return;
|
||||
}
|
||||
containerServerActions.destroyed({id: name});
|
||||
var volumePath = path.join(util.home(), 'Kitematic', name);
|
||||
if (fs.existsSync(volumePath)) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue