mirror of
https://github.com/tiennm99/coolify.git
synced 2026-08-01 06:21:34 +00:00
fix: add Arch Linux support for Docker installation (#7408)
This commit is contained in:
@@ -78,6 +78,8 @@ class InstallDocker
|
||||
$command = $command->merge([$this->getRhelDockerInstallCommand()]);
|
||||
} elseif ($supported_os_type->contains('sles')) {
|
||||
$command = $command->merge([$this->getSuseDockerInstallCommand()]);
|
||||
} elseif ($supported_os_type->contains('arch')) {
|
||||
$command = $command->merge([$this->getArchDockerInstallCommand()]);
|
||||
} else {
|
||||
$command = $command->merge([$this->getGenericDockerInstallCommand()]);
|
||||
}
|
||||
@@ -146,6 +148,14 @@ class InstallDocker
|
||||
')';
|
||||
}
|
||||
|
||||
private function getArchDockerInstallCommand(): string
|
||||
{
|
||||
return 'pacman -Syyy --noconfirm && '.
|
||||
'pacman -S docker docker-compose --noconfirm && '.
|
||||
'systemctl start docker && '.
|
||||
'systemctl enable docker';
|
||||
}
|
||||
|
||||
private function getGenericDockerInstallCommand(): string
|
||||
{
|
||||
return "curl https://releases.rancher.com/install-docker/{$this->dockerVersion}.sh | sh || curl https://get.docker.com | sh -s -- --version {$this->dockerVersion}";
|
||||
|
||||
Reference in New Issue
Block a user