feat (container): add publish all ports option (#558) (#566)

pull/595/head
Romain 8 years ago committed by Anthony Lapenna
parent e0b94e4ff7
commit c5552d1b8e

@ -23,6 +23,7 @@ function ($scope, $state, $stateParams, $filter, Config, Info, Container, Contai
Name: 'no' Name: 'no'
}, },
PortBindings: [], PortBindings: [],
PublishAllPorts: false,
Binds: [], Binds: [],
NetworkMode: 'bridge', NetworkMode: 'bridge',
Privileged: false Privileged: false

@ -64,6 +64,11 @@
<div class="form-group"> <div class="form-group">
<label for="container_ports" class="col-sm-1 control-label text-left">Port mapping</label> <label for="container_ports" class="col-sm-1 control-label text-left">Port mapping</label>
<div class="col-sm-11"> <div class="col-sm-11">
<div class="checkbox">
<label>
<input type="checkbox" ng-model="config.HostConfig.PublishAllPorts"> Publish all exposed ports
</label>
</div>
<span class="label label-default interactive" ng-click="addPortBinding()"> <span class="label label-default interactive" ng-click="addPortBinding()">
<i class="fa fa-plus-circle" aria-hidden="true"></i> map port <i class="fa fa-plus-circle" aria-hidden="true"></i> map port
</span> </span>

Loading…
Cancel
Save