portainer/app/components/startContainer/startcontainer.html

66 lines
4.0 KiB
HTML
Raw Normal View History

<div id="create-modal" class="modal fade">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
<h3>Create And Start Container From Image</h3>
</div>
<div class="modal-body">
<form role="form">
<fieldset>
<div class="form-group">
<label>Cmd:</label>
<input type="text" placeholder="{{ commandPlaceholder }}" ng-model="config.commands" class="form-control"/>
<small>Input commands as an array</small>
</div>
<div class="form-group">
<label>Name:</label>
<input type="text" ng-model="config.name" class="form-control"/>
</div>
<div class="form-group">
<label>Memory:</label>
<input type="number" ng-model="config.memory" class="form-control"/>
</div>
<div class="form-group">
<label>Memory Swap:</label>
<input type="number" ng-model="config.memorySwap" class="form-control"/>
</div>
<div class="form-group">
<label>CPU Shares:</label>
<input type="number" ng-model="config.cpuShares" class="form-control"/>
</div>
<div class="form-group">
<label>Volumes From:</label>
<input type="text" ng-model="config.volumesFrom" class="form-control"/>
</div>
2015-01-19 05:20:49 +00:00
<div class="form-group">
<label>Port bindings:</label>
<div ng-repeat="portBinding in config.portBindings" class="form-inline">
<div class="form-group">
<label class="sr-only">Host IP:</label>
<input type="text" ng-model="portBinding.ip" class="form-control" placeholder="Host IP Address"/>
</div>
<div class="form-group">
<label class="sr-only">Host Port:</label>
<input type="text" ng-model="portBinding.extPort" class="form-control" placeholder="Host Port"/>
</div>
<div class="form-group">
<label class="sr-only">Container port:</label>
<input type="text" ng-model="portBinding.intPort" class="form-control" placeholder="Container Port"/>
</div>
<div class="form-group">
<button class="btn btn-danger btn-xs form-control" ng-click="removePortBinding(portBinding)">Remove</button>
</div>
</div>
<button type="button" class="btn btn-success" ng-click="addPortBinding()">Add Port Binding</button>
</div>
</fieldset>
</form>
</div>
<div class="modal-footer">
<a href="" class="btn btn-primary" ng-click="create()">Create</a>
</div>
</div>
</div>
2013-06-18 23:28:22 +00:00
</div>