Update Docker Engine version check

This commit is contained in:
Andras Bacsai 2023-11-21 13:06:05 +01:00
parent 4a21102983
commit f58e6766e1
2 changed files with 2 additions and 1 deletions

View File

@ -68,6 +68,7 @@ public function handle(Server $server)
"cat <<< $(jq . /etc/docker/daemon.json.coolify) > /etc/docker/daemon.json.coolify",
"cat <<< $(jq -s '.[0] * .[1]' /etc/docker/daemon.json /etc/docker/daemon.json.coolify) > /etc/docker/daemon.json",
"echo 'Restarting Docker Engine...'",
"systemctl enable docker >/dev/null 2>&1 || true",
"systemctl restart docker",
"echo 'Creating default Docker network (coolify)...'",
"docker network create --attachable coolify >/dev/null 2>&1 || true",

View File

@ -95,7 +95,7 @@ public function validateServer($install = true)
}
$dockerVersion = $this->server->validateDockerEngineVersion();
if ($dockerVersion) {
$install && $this->emit('success', 'Docker Engine version is 23+.');
$install && $this->emit('success', 'Docker Engine version is 22+.');
} else {
$install && $this->installDocker();
return;