stop all containers of an app

This commit is contained in:
Girish Ramakrishnan
2015-10-20 00:05:07 -07:00
parent 6d04481c27
commit daba68265c
2 changed files with 19 additions and 1 deletions
+1 -1
View File
@@ -657,7 +657,7 @@ function runApp(app, callback) {
}
function stopApp(app, callback) {
docker.stopContainer(app.containerId, function (error) {
docker.stopContainers(app.id, function (error) {
if (error) return callback(error);
updateApp(app, { runState: appdb.RSTATE_STOPPED }, callback);