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 @@ + + +