mirror of https://github.com/docker/docs.git
Fix upgrade and delete bugs
This commit is contained in:
parent
2ea88c28b8
commit
c92b74bfa0
|
@ -23,6 +23,10 @@ module.exports = React.createClass({
|
|||
LogStore.fetch(this.props.container.Name);
|
||||
},
|
||||
componentWillUnmount: function() {
|
||||
if (!this.props.container) {
|
||||
return;
|
||||
}
|
||||
|
||||
LogStore.detach(this.props.container.Name);
|
||||
LogStore.removeListener(LogStore.SERVER_LOGS_EVENT, this.update);
|
||||
},
|
||||
|
|
|
@ -80,7 +80,7 @@ var _steps = [{
|
|||
var isoversion = machine.isoversion();
|
||||
var packagejson = util.packagejson();
|
||||
if (!isoversion || setupUtil.compareVersions(isoversion, packagejson['docker-version']) < 0) {
|
||||
yield machine.stop();
|
||||
yield machine.start();
|
||||
yield machine.upgrade();
|
||||
}
|
||||
if ((yield machine.state()) !== 'Running') {
|
||||
|
|
Loading…
Reference in New Issue