Skip to content

Commit

Permalink
docker install on almalinux
Browse files Browse the repository at this point in the history
  • Loading branch information
usmannasir committed Jan 5, 2024
1 parent 8fed57b commit 142f995
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions plogical/DockerSites.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 142f995

Please sign in to comment.