Use NetworkSettings.Ports rather than HostConfig.PortBindings to diplay host port bindings

pull/2/head
Charlie Murray 2016-01-18 11:05:08 +00:00
parent 44c88f1ed5
commit f62cb483ce
1 changed files with 1 additions and 1 deletions

View File

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