Merge pull request #33 from alafon/containerview-portbindings

Display PortBindings instead of PortMapping in the /container view
pull/2/head
Michael Crosby 2014-07-28 12:03:50 -07:00
commit 89a5b6e4f9
1 changed files with 5 additions and 1 deletions

View File

@ -37,7 +37,11 @@
<tr> <tr>
<td>Ports:</td> <td>Ports:</td>
<td> <td>
{{ container.NetworkSettings.PortMapping || container.Config.PortSpecs }} <ul style="display:inline-table">
<li ng-repeat="(containerport, hostports) in container.HostConfig.PortBindings">
{{ containerport }} => <span class="label" ng-repeat="(k,v) in hostports">{{ v.HostIp }}:{{ v.HostPort }}</span>
</li>
</ul>
</td> </td>
</tr> </tr>