createContainer takes optional command

This commit is contained in:
Girish Ramakrishnan
2015-10-19 16:22:35 -07:00
parent 9346666b3e
commit 25d74ed649
2 changed files with 8 additions and 4 deletions

View File

@@ -136,7 +136,9 @@ function unconfigureNginx(app, callback) {
}
function createContainer(app, callback) {
docker.createContainer(app, function (error, container) {
assert(!app.containerId); // otherwise, it will trigger volumeFrom
docker.createContainer(app, null /* command */, function (error, container) {
if (error) return callback(new Error('Error creating container: ' + error));
updateApp(app, { containerId: container.id }, callback);