mirror of https://github.com/docker/docs.git
Delete any app that isn't reflected in Docker
This commit is contained in:
parent
6456650154
commit
ca9110d75a
|
@ -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