mirror of
https://github.com/coollabsio/coolify.git
synced 2026-08-29 18:14:38 -05:00
17 lines
496 B
PHP
17 lines
496 B
PHP
<?php
|
|
|
|
namespace App\Actions\Destination;
|
|
|
|
use App\Models\StandaloneDocker;
|
|
|
|
class RemoveStandaloneDockerNetwork
|
|
{
|
|
public function handle(StandaloneDocker $destination): void
|
|
{
|
|
$safeNetwork = escapeshellarg($destination->network);
|
|
|
|
instant_remote_process(["docker network disconnect {$safeNetwork} coolify-proxy"], $destination->server, throwError: false);
|
|
instant_remote_process([dockerNetworkRemoveCommand($destination->network)], $destination->server);
|
|
}
|
|
}
|