fix: also check docker socks permission on validation

This commit is contained in:
Andras Bacsai 2023-09-24 17:48:40 +02:00
parent 5b877b84c2
commit 0509da6730

View File

@ -189,7 +189,7 @@ function validateServer(Server $server, bool $throwError = false)
]; ];
} }
$server->settings->is_reachable = true; $server->settings->is_reachable = true;
instant_remote_process(["docker ps"], $server, $throwError);
$dockerVersion = instant_remote_process(["docker version|head -2|grep -i version| awk '{print $2}'"], $server, $throwError); $dockerVersion = instant_remote_process(["docker version|head -2|grep -i version| awk '{print $2}'"], $server, $throwError);
if (!$dockerVersion) { if (!$dockerVersion) {
$dockerVersion = null; $dockerVersion = null;