containerId can be null

This commit is contained in:
Girish Ramakrishnan
2015-08-17 22:01:19 -07:00
parent 4db9a5edd6
commit 361be8c26b
+5
View File
@@ -355,6 +355,11 @@ function startContainer(app, callback) {
}
function stopContainer(app, callback) {
if (!app.containerId) {
debugApp(app, 'No previous container to stop');
return callback();
}
var container = docker.getContainer(app.containerId);
debugApp(app, 'Stopping container %s', container.id);