1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-04 21:35:23 +02:00

Added PortBindings to container start.

This commit is contained in:
Kevan Ahlquist 2015-01-18 23:20:49 -06:00
parent 77062bec84
commit 76d7e280f9
4 changed files with 128 additions and 4 deletions

View file

@ -33,6 +33,27 @@
<label>Volumes From:</label>
<input type="text" ng-model="config.volumesFrom" class="form-control"/>
</div>
<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>