1
0
mirror of https://github.com/docker/docs.git synced 2026-11-05 00:14:17 +03:00

Delete any app that isn't reflected in Docker

This commit is contained in:
Jeff Morgan
2014-12-09 10:54:46 -08:00
parent 6456650154
commit ca9110d75a

View File

@@ -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);
}
});