An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
fix docker minimum version
peaklabs-dev408ba9cc7aed
diff --git a/app/Actions/Server/InstallDocker.php b/app/Actions/Server/InstallDocker.phpindex ba6c23ffce..cbcb20368c 100644--- a/app/Actions/Server/InstallDocker.php+++ b/app/Actions/Server/InstallDocker.php@@ -12,7 +12,7 @@ class InstallDockerpublic function handle(Server $server){- $dockerVersion = config('constants.docker_install_version');+ $dockerVersion = config('constants.docker.minimum_required_version');$supported_os_type = $server->validateOS();if (! $supported_os_type) {throw new \Exception('Server OS type is not supported for automated installation. Please install Docker manually before continuing: <a target="_blank" class="underline" href="https://coolify.io/docs/installation#manually">documentation</a>.');diff --git a/app/Livewire/Boarding/Index.php b/app/Livewire/Boarding/Index.phpindex 3d18ee5ebc..b6c799c4e9 100644--- a/app/Livewire/Boarding/Index.php+++ b/app/Livewire/Boarding/Index.php@@ -74,7 +74,7 @@ class Index extends Componentreturn redirect()->route('dashboard');}- $this->minDockerVersion = str(config('constants.docker_install_version'))->before('.');+ $this->minDockerVersion = str(config('constants.docker.minimum_required_version'))->before('.');$this->privateKeyName = generate_random_name();$this->remoteServerName = generate_random_name();if (isDev()) {diff --git a/app/Livewire/Server/ValidateAndInstall.php b/app/Livewire/Server/ValidateAndInstall.phpindex eed368973d..791ef93501 100644--- a/app/Livewire/Server/ValidateAndInstall.php+++ b/app/Livewire/Server/ValidateAndInstall.php@@ -159,7 +159,7 @@ class ValidateAndInstall extends Component$this->dispatch('refreshBoardingIndex');$this->dispatch('success', 'Server validated.');} else {- $requiredDockerVersion = str(config('constants.docker_install_version'))->before('.');+ $requiredDockerVersion = str(config('constants.docker.minimum_required_version'))->before('.');$this->error = 'Minimum Docker Engine version '.$requiredDockerVersion.' is not instaled. Please install Docker manually before continuing: <a target="_blank" class="underline" href="https://docs.docker.com/engine/install/#server">documentation</a>.';$this->server->update(['validation_logs' => $this->error,diff --git a/bootstrap/helpers/docker.php b/bootstrap/helpers/docker.phpindex 299ee40517..b3d7f04cd9 100644--- a/bootstrap/helpers/docker.php+++ b/bootstrap/helpers/docker.php@@ -109,7 +109,7 @@ function format_docker_envs_to_json($rawOutput)function checkMinimumDockerEngineVersion($dockerVersion){$majorDockerVersion = str($dockerVersion)->before('.')->value();- $requiredDockerVersion = str(config('constants.docker_install_version'))->before('.')->value();+ $requiredDockerVersion = str(config('constants.docker.minimum_required_version'))->before('.')->value();if ($majorDockerVersion < $requiredDockerVersion) {$dockerVersion = null;}diff --git a/config/constants.php b/config/constants.phpindex 1bec2e3bfd..f42a64c717 100644--- a/config/constants.php+++ b/config/constants.php@@ -1,7 +1,6 @@<?phpreturn [- 'docker_install_version' => '26.0','docs' => ['base_url' => 'https://coolify.io/docs','contact' => 'https://coolify.io/docs/contact',@@ -13,6 +12,9 @@ return ['server_interval' => 20,'command_timeout' => 7200,],+ 'docker' => [+ 'minimum_required_version' => '24.0',+ ],'waitlist' => ['expiration' => 10,],