portainer/app/components/startContainer/startcontainer.html

87 lines
5.8 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">
2015-01-21 05:31:57 +00:00
<label>Mount Volumes From other containers:</label>
<div ng-repeat="volume in config.volumesFrom" class="form-inline">
<select ng-model="volume.name" ng-options="name for name in containerNames track by name"/>
<button class="btn btn-danger btn-xs form-control" ng-click="removeVolume($index)">Remove</button>
</div>
<button type="button" class="btn btn-success" ng-click="addVolume()">Add volume</button>
</div>
<div class="form-group">
<label>Environment Variables:</label>
<div ng-repeat="envar in config.env" class="form-inline">
<div class="form-group">
<label class="sr-only">Variable Name:</label>
<input type="text" ng-model="envar.name" class="form-control" placeholder="NAME"/>
</div>
<div class="form-group">
<label class="sr-only">Variable Value:</label>
<input type="text" ng-model="envar.value" class="form-control" placeholder="value"/>
</div>
<div class="form-group">
<button class="btn btn-danger btn-xs form-control" ng-click="removeEnv(portBinding)">Remove</button>
</div>
</div>
<button type="button" class="btn btn-success" ng-click="addEnv()">Add ENV variable</button>
</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>