mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-06-18 20:41:27 +02:00
docker install on almalinux
This commit is contained in:
@@ -61,6 +61,22 @@ class Docker_Sites(multi.Thread):
|
||||
command = 'dnf install docker-ce docker-ce-cli containerd.io docker-compose-plugin -y'
|
||||
ReturnCode = ProcessUtilities.executioner(command)
|
||||
|
||||
if ReturnCode:
|
||||
pass
|
||||
else:
|
||||
return 0, ReturnCode
|
||||
|
||||
command = 'sudo systemctl enable docker'
|
||||
ReturnCode = ProcessUtilities.executioner(command)
|
||||
|
||||
if ReturnCode:
|
||||
pass
|
||||
else:
|
||||
return 0, ReturnCode
|
||||
|
||||
command = 'sudo systemctl start docker'
|
||||
ReturnCode = ProcessUtilities.executioner(command)
|
||||
|
||||
if ReturnCode:
|
||||
return 1, None
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user