mirror of https://github.com/docker/docs.git
Merge branch 'master' into sean-polish
This commit is contained in:
commit
99ae10ef1f
|
@ -31,7 +31,7 @@ var VirtualBox = {
|
||||||
return util.exec(['pkill', 'VirtualBox']);
|
return util.exec(['pkill', 'VirtualBox']);
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
return util.exec(['pkill', 'VBox']);
|
return util.exec(['pkill', 'VBox']);
|
||||||
}).catch(err => {
|
}).catch(() => {
|
||||||
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
@ -48,9 +48,6 @@ var VirtualBox = {
|
||||||
},
|
},
|
||||||
vmdestroy: function (name) {
|
vmdestroy: function (name) {
|
||||||
return Promise.coroutine(function* () {
|
return Promise.coroutine(function* () {
|
||||||
if (!this.installed()) {
|
|
||||||
return Promise.reject('VirtualBox not installed.');
|
|
||||||
}
|
|
||||||
try {
|
try {
|
||||||
var state = yield this.vmstate(name);
|
var state = yield this.vmstate(name);
|
||||||
if (state === 'running') {
|
if (state === 'running') {
|
||||||
|
|
Loading…
Reference in New Issue