mirror of https://github.com/docker/docs.git
Delete any app that isn't reflected in Docker
This commit is contained in:
parent
2e6750b1d5
commit
e2630f9ef5
|
@ -153,7 +153,7 @@ AppUtil.sync = function (callback) {
|
|||
var diffApps = _.difference(guiIds, containerIds);
|
||||
_.each(diffApps, function (appContainerId) {
|
||||
var app = Apps.findOne({'docker.Id': appContainerId});
|
||||
if (app && app.status !== 'STARTING') {
|
||||
if (app) {
|
||||
AppUtil.remove(app._id);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue