mirror of
https://github.com/portainer/portainer.git
synced 2025-07-25 00:09:40 +02:00
fix(templates): fix an issue where the image would not be pulled correctly (#664)
This commit is contained in:
parent
ebc378230f
commit
723bf3874f
1 changed files with 4 additions and 1 deletions
|
@ -46,7 +46,10 @@ function ($scope, $q, $state, $anchorScroll, Config, ContainerService, Container
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
TemplateService.updateContainerConfigurationWithVolumes(templateConfiguration.container, template, data);
|
TemplateService.updateContainerConfigurationWithVolumes(templateConfiguration.container, template, data);
|
||||||
return $q.all(volumeResourceControlQueries).then(ImageService.pullImage(templateConfiguration.image));
|
return $q.all(volumeResourceControlQueries)
|
||||||
|
.then(function success() {
|
||||||
|
return ImageService.pullImage(templateConfiguration.image);
|
||||||
|
});
|
||||||
})
|
})
|
||||||
.then(function success(data) {
|
.then(function success(data) {
|
||||||
return ContainerService.createAndStartContainer(templateConfiguration.container);
|
return ContainerService.createAndStartContainer(templateConfiguration.container);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue