mirror of https://github.com/portainer/portainer
Added CpuShares to container start task.
parent
c9009db87d
commit
86ca961d37
|
@ -453,6 +453,7 @@ function StartContainerController($scope, $routeParams, $location, Container, Me
|
||||||
name: '',
|
name: '',
|
||||||
memory: 0,
|
memory: 0,
|
||||||
memorySwap: 0,
|
memorySwap: 0,
|
||||||
|
cpuShares: 1024,
|
||||||
env: '',
|
env: '',
|
||||||
commands: '',
|
commands: '',
|
||||||
volumesFrom: ''
|
volumesFrom: ''
|
||||||
|
@ -474,6 +475,7 @@ function StartContainerController($scope, $routeParams, $location, Container, Me
|
||||||
name: $scope.config.name,
|
name: $scope.config.name,
|
||||||
Memory: $scope.config.memory,
|
Memory: $scope.config.memory,
|
||||||
MemorySwap: $scope.config.memorySwap,
|
MemorySwap: $scope.config.memorySwap,
|
||||||
|
CpuShares: $scope.config.cpuShares,
|
||||||
Cmd: cmds,
|
Cmd: cmds,
|
||||||
VolumesFrom: $scope.config.volumesFrom
|
VolumesFrom: $scope.config.volumesFrom
|
||||||
}, function(d) {
|
}, function(d) {
|
||||||
|
|
|
@ -21,6 +21,9 @@
|
||||||
<label>Memory Swap:</label>
|
<label>Memory Swap:</label>
|
||||||
<input type="number" ng-model="config.memorySwap"/>
|
<input type="number" ng-model="config.memorySwap"/>
|
||||||
|
|
||||||
|
<label>CPU Shares:</label>
|
||||||
|
<input type="number" ng-model="config.cpuShares"/>
|
||||||
|
|
||||||
<label>Volumes From:</label>
|
<label>Volumes From:</label>
|
||||||
<input type="text" ng-model="config.volumesFrom"/>
|
<input type="text" ng-model="config.volumesFrom"/>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
Loading…
Reference in New Issue