diff --git a/plugins/dynamix.docker.manager/include/DockerClient.php b/plugins/dynamix.docker.manager/include/DockerClient.php index acd86b27a..037022edb 100644 --- a/plugins/dynamix.docker.manager/include/DockerClient.php +++ b/plugins/dynamix.docker.manager/include/DockerClient.php @@ -710,6 +710,7 @@ class DockerClient { $nat = false; } $ip = $ct['NetworkSettings']['Networks'][$c['NetworkMode']]['IPAddress']; + $ports = is_array($ports) ? $ports : array(); foreach ($ports as $port => $value) { list($PrivatePort, $Type) = explode('/', $port); $c['Ports'][] = ['IP' => $ip, 'PrivatePort' => $PrivatePort, 'PublicPort' => $nat ? $value[0]['HostPort']:$PrivatePort, 'NAT' => $nat, 'Type' => $Type ];