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

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

This commit is contained in:
Charlie Murray 2016-01-18 11:05:08 +00:00
parent 44c88f1ed5
commit f62cb483ce

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>