Merge pull request #2797 from coollabsio/next
refactor: comment out unused code for network cleanup
This commit is contained in:
commit
6072e7efc7
@ -23,14 +23,14 @@ public function handle(Server $server, bool $force = true)
|
|||||||
instant_remote_process(['docker builder prune -f'], $server, false);
|
instant_remote_process(['docker builder prune -f'], $server, false);
|
||||||
}
|
}
|
||||||
// cleanup networks
|
// cleanup networks
|
||||||
$networks = collectDockerNetworksByServer($server);
|
// $networks = collectDockerNetworksByServer($server);
|
||||||
$proxyNetworks = collectProxyDockerNetworksByServer($server);
|
// $proxyNetworks = collectProxyDockerNetworksByServer($server);
|
||||||
$diff = $proxyNetworks->diff($networks);
|
// $diff = $proxyNetworks->diff($networks);
|
||||||
if ($diff->count() > 0) {
|
// if ($diff->count() > 0) {
|
||||||
$diff->map(function ($network) use ($server) {
|
// $diff->map(function ($network) use ($server) {
|
||||||
instant_remote_process(["docker network disconnect $network coolify-proxy"], $server);
|
// instant_remote_process(["docker network disconnect $network coolify-proxy"], $server);
|
||||||
instant_remote_process(["docker network rm $network"], $server);
|
// instant_remote_process(["docker network rm $network"], $server);
|
||||||
});
|
// });
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user