1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-05 05:45:22 +02:00

fix(container-details): use container.Mounts instead of container.HostConfig.Binds (#1329)

This commit is contained in:
Anthony Lapenna 2017-10-25 17:03:40 +02:00 committed by GitHub
parent 25f325bbaa
commit 77503b448e
2 changed files with 8 additions and 6 deletions

View file

@ -241,7 +241,7 @@
</div>
</div>
<div class="row" ng-if="container.HostConfig.Binds.length > 0">
<div class="row" ng-if="container.Mounts.length > 0">
<div class="col-lg-12 col-md-12 col-xs-12">
<rd-widget>
<rd-widget-header icon="fa-cubes" title="Volumes"></rd-widget-header>
@ -249,14 +249,15 @@
<table class="table">
<thead>
<tr>
<th>Host</th>
<th>Container</th>
<th>Host/volume</th>
<th>Path in container</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="vol in container.HostConfig.Binds">
<td>{{ vol|key: ':' }}</td>
<td>{{ vol|value: ':' }}</td>
<tr ng-repeat="vol in container.Mounts">
<td ng-if="vol.Type === 'bind'">{{ vol.Source }}</td>
<td ng-if="vol.Type === 'volume'"><a ui-sref="volume({id: vol.Name})">{{ vol.Name }}</a></td>
<td>{{ vol.Destination }}</td>
</tr>
</tbody>
</table>