From 86ca961d376e1f050f238d8ce7c6b446adba3bb5 Mon Sep 17 00:00:00 2001 From: Kevan Ahlquist Date: Sun, 26 Oct 2014 01:09:54 -0500 Subject: [PATCH] Added CpuShares to container start task. --- js/controllers.js | 2 ++ partials/startcontainer.html | 3 +++ 2 files changed, 5 insertions(+) diff --git a/js/controllers.js b/js/controllers.js index 437031ef5..c1c6ff9a6 100644 --- a/js/controllers.js +++ b/js/controllers.js @@ -453,6 +453,7 @@ function StartContainerController($scope, $routeParams, $location, Container, Me name: '', memory: 0, memorySwap: 0, + cpuShares: 1024, env: '', commands: '', volumesFrom: '' @@ -474,6 +475,7 @@ function StartContainerController($scope, $routeParams, $location, Container, Me name: $scope.config.name, Memory: $scope.config.memory, MemorySwap: $scope.config.memorySwap, + CpuShares: $scope.config.cpuShares, Cmd: cmds, VolumesFrom: $scope.config.volumesFrom }, function(d) { diff --git a/partials/startcontainer.html b/partials/startcontainer.html index 10b1e8639..3cf6885c2 100644 --- a/partials/startcontainer.html +++ b/partials/startcontainer.html @@ -21,6 +21,9 @@ + + +