shell.exec -> shell.spawn

This commit is contained in:
Girish Ramakrishnan
2018-11-17 19:26:19 -08:00
parent 1b1945e1f5
commit fd4057df94
6 changed files with 12 additions and 12 deletions

View File

@@ -109,7 +109,7 @@ function pullImage(manifest, callback) {
// Use docker CLI here to support downloading of private repos. for dockerode, we have to use
// https://github.com/apocas/dockerode#pull-from-private-repos
shell.exec('pullImage', '/usr/bin/docker', [ 'pull', manifest.dockerImage ], { }, function (error) {
shell.spawn('pullImage', '/usr/bin/docker', [ 'pull', manifest.dockerImage ], { }, function (error) {
if (error) {
debug(`pullImage: Error pulling image ${manifest.dockerImage} of ${manifest.id}: ${error.message}`);
return callback(new Error('Failed to pull image'));