From 142f99519cb102037c42255a85f86093da5f6bad Mon Sep 17 00:00:00 2001 From: usmannasir Date: Fri, 5 Jan 2024 09:58:11 +0500 Subject: [PATCH] docker install on almalinux --- plogical/DockerSites.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/plogical/DockerSites.py b/plogical/DockerSites.py index a70d4de79..eaebc0dca 100644 --- a/plogical/DockerSites.py +++ b/plogical/DockerSites.py @@ -61,6 +61,22 @@ def InstallDocker(self): 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: