mirror of
https://github.com/portainer/portainer.git
synced 2025-07-27 09:19:39 +02:00
Start containers with the same HostConfig they had at last runtime.
This commit is contained in:
parent
8652285227
commit
c9009db87d
1 changed files with 4 additions and 1 deletions
|
@ -172,7 +172,10 @@ function ContainerController($scope, $routeParams, $location, Container, Message
|
|||
|
||||
$scope.start = function(){
|
||||
ViewSpinner.spin();
|
||||
Container.start({id: $routeParams.id}, function(d) {
|
||||
Container.start({
|
||||
id: $scope.container.Id,
|
||||
HostConfig: $scope.container.HostConfig
|
||||
}, function(d) {
|
||||
update();
|
||||
Messages.send("Container started", $routeParams.id);
|
||||
}, function(e) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue