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 3ddb5a1 commit f835bba
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plogical/DockerSites.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,16 +81,16 @@ def InstallDocker(self):
else:
return 0, ReturnCode

command = 'curl -L "https://github.com/docker/compose/releases/download/v2.19.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose'
ReturnCode = ProcessUtilities.executioner(command)
command = 'curl -L "https://github.com/docker/compose/releases/download/v2.23.2/docker-compose-linux-x86_64" -o /usr/local/bin/docker-compose'
ReturnCode = ProcessUtilities.executioner(command, 'root', True)

if ReturnCode:
pass
else:
return 0, ReturnCode

command = 'chmod +x /usr/local/bin/docker-compose'
ReturnCode = ProcessUtilities.executioner(command)
command = 'chmod +x /usr/local/bin/docker-compose && ln -s /usr/bin/docker-compose /usr/local/bin/docker-compose'
ReturnCode = ProcessUtilities.executioner(command, 'root', True)

if ReturnCode:
return 1, None
Expand Down

0 comments on commit f835bba

Please sign in to comment.