From c9009db87d4ecd2b667a993aadce4d6037185183 Mon Sep 17 00:00:00 2001 From: Kevan Ahlquist Date: Thu, 23 Oct 2014 01:24:58 -0500 Subject: [PATCH] Start containers with the same HostConfig they had at last runtime. --- js/controllers.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/controllers.js b/js/controllers.js index ba1f6e053..437031ef5 100644 --- a/js/controllers.js +++ b/js/controllers.js @@ -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) {