mirror of https://github.com/docker/docs.git
Fixed crash when getting container data.
This commit is contained in:
parent
2af8f51b2e
commit
f103b9cf43
|
@ -148,6 +148,7 @@
|
||||||
}
|
}
|
||||||
min-height: @dashboard-content-height;
|
min-height: @dashboard-content-height;
|
||||||
max-height: @dashboard-content-height;
|
max-height: @dashboard-content-height;
|
||||||
|
overflow-x: hidden;
|
||||||
overflow-y: overlay;
|
overflow-y: overlay;
|
||||||
}
|
}
|
||||||
.nav-tabs > li,
|
.nav-tabs > li,
|
||||||
|
|
|
@ -104,7 +104,7 @@ recoverApps = function (callback) {
|
||||||
}
|
}
|
||||||
var container = docker.getContainer(app.docker.Id);
|
var container = docker.getContainer(app.docker.Id);
|
||||||
container.inspect(function (err, data) {
|
container.inspect(function (err, data) {
|
||||||
if (app.status !== 'STARTING' && !data.State.Running) {
|
if (app.status !== 'STARTING' && data && data.State && !data.State.Running) {
|
||||||
console.log('restarting: ' + app.name);
|
console.log('restarting: ' + app.name);
|
||||||
console.log(app.docker.Id);
|
console.log(app.docker.Id);
|
||||||
Fiber(function () {
|
Fiber(function () {
|
||||||
|
|
Loading…
Reference in New Issue