diff --git a/app/components/container/container.html b/app/components/container/container.html
index 5d9b16401..299daa06b 100644
--- a/app/components/container/container.html
+++ b/app/components/container/container.html
@@ -40,6 +40,10 @@
ng-click="unpause()"
ng-show="container.State.Running && container.State.Paused">Unpause
+
diff --git a/app/components/container/containerController.js b/app/components/container/containerController.js
index e79ea8c77..80ff158f7 100644
--- a/app/components/container/containerController.js
+++ b/app/components/container/containerController.js
@@ -91,6 +91,17 @@ function($scope, $routeParams, $location, Container, Messages, ViewSpinner) {
});
};
+ $scope.restart = function() {
+ ViewSpinner.spin();
+ Container.restart({id: $routeParams.id}, function(d) {
+ update();
+ Messages.send("Container restarted", $routeParams.id);
+ }, function(e){
+ update();
+ Messages.error("Failure", "Container failed to restart." + e.data);
+ });
+ };
+
$scope.hasContent = function(data) {
return data !== null && data !== undefined;
};