Added CpuShares to container start task.

pull/2/head
Kevan Ahlquist 10 years ago
parent c9009db87d
commit 86ca961d37

@ -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) {

@ -21,6 +21,9 @@
<label>Memory Swap:</label>
<input type="number" ng-model="config.memorySwap"/>
<label>CPU Shares:</label>
<input type="number" ng-model="config.cpuShares"/>
<label>Volumes From:</label>
<input type="text" ng-model="config.volumesFrom"/>
</fieldset>

Loading…
Cancel
Save