docker install on almalinux

This commit is contained in:
usmannasir
2024-01-05 09:58:11 +05:00
parent 8fed57b352
commit 142f99519c

View File

@@ -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: