mirror of
https://github.com/docker/docs.git
synced 2026-04-12 22:36:10 +07:00
Fixed crash when getting container data.
This commit is contained in:
@@ -148,6 +148,7 @@
|
||||
}
|
||||
min-height: @dashboard-content-height;
|
||||
max-height: @dashboard-content-height;
|
||||
overflow-x: hidden;
|
||||
overflow-y: overlay;
|
||||
}
|
||||
.nav-tabs > li,
|
||||
|
||||
@@ -104,7 +104,7 @@ recoverApps = function (callback) {
|
||||
}
|
||||
var container = docker.getContainer(app.docker.Id);
|
||||
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(app.docker.Id);
|
||||
Fiber(function () {
|
||||
|
||||
Reference in New Issue
Block a user