fix: old docker version error
This commit is contained in:
parent
363f525ad1
commit
16c71f3647
@ -56,14 +56,15 @@ public function validateServer()
|
||||
$this->uptime = $uptime;
|
||||
$this->emit('success', 'Server is reachable!');
|
||||
} else {
|
||||
throw new \Exception('Server is not rachable');
|
||||
$this->emit('error', 'Server is not rachable');
|
||||
return;
|
||||
}
|
||||
if ($dockerVersion) {
|
||||
$this->dockerVersion = $dockerVersion;
|
||||
$this->emit('proxyStatusUpdated');
|
||||
$this->emit('success', 'Docker Engine 23+ is installed!');
|
||||
} else {
|
||||
throw new \Exception('Old Docker version detected (lower than 23).');
|
||||
$this->emit('error', 'Old (lower than 23) or no Docker version detected. Install Docker Engine on the General tab.');
|
||||
}
|
||||
} catch (\Exception $e) {
|
||||
return general_error_handler($e, that: $this);
|
||||
|
@ -38,12 +38,13 @@ public function checkConnection()
|
||||
if ($uptime) {
|
||||
$this->emit('success', 'Server is reachable with this private key.');
|
||||
} else {
|
||||
throw new \Exception('Server is not reachable with this private key.');
|
||||
$this->emit('error', 'Server is not reachable with this private key.');
|
||||
return;
|
||||
}
|
||||
if ($dockerVersion) {
|
||||
$this->emit('success', 'Server is usable for Coolify.');
|
||||
} else {
|
||||
throw new \Exception('Old Docker version detected (lower than 23).');
|
||||
$this->emit('error', 'Old (lower than 23) or no Docker version detected. Install Docker Engine on the General tab.');
|
||||
}
|
||||
} catch (\Exception $e) {
|
||||
throw new \Exception($e->getMessage());
|
||||
|
Loading…
Reference in New Issue
Block a user