Skip to content

Commit 797d705

Browse files
committed
Fix usage without network
1 parent 34f12b1 commit 797d705

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Synchronizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ private function getHostsLines($container)
154154
*/
155155
private function getContainerHosts($container)
156156
{
157-
$hosts = [substr($container->getName(), 1).$this->tld];
157+
$hosts = [substr($container['Name'], 1).$this->tld];
158158
if (isset($container['Config']['Env']) && is_array($container['Config']['Env'])) {
159159
$env = $container['Config']['Env'];
160160
foreach (preg_grep('/DOMAIN_NAME=/', $env) as $row) {

0 commit comments

Comments
 (0)