ignore any error when stopping addon containers

fixes #29
This commit is contained in:
Girish Ramakrishnan
2016-09-03 11:24:12 -07:00
parent 0058eddd22
commit ef6344afae

View File

@@ -122,7 +122,8 @@ function stopContainers(existingInfra, callback) {
}
debug('stopping addons for incremental infra update: %j', changedAddons);
shell.execSync('stopContainers', 'docker rm -f ' + changedAddons.join(' '));
// ignore error if container not found (and fail later) so that this code works across restarts
shell.execSync('stopContainers', 'docker rm -f ' + changedAddons.join(' ') + ' || true');
}
callback();