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

pull/2/head
Charlie Murray 9 years ago
parent 44c88f1ed5
commit f62cb483ce

@ -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>

Loading…
Cancel
Save