From ee9d651671a2a68553e2dc4acd62c32c2f13d180 Mon Sep 17 00:00:00 2001 From: TommyTran732 Date: Sun, 26 Sep 2021 00:13:00 -0400 Subject: [PATCH] Fixed docker installation on RHEL 8 --- install.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index f26462f..5abe8e1 100644 --- a/install.sh +++ b/install.sh @@ -718,10 +718,14 @@ install_wings() { fi output "Installing Docker" - curl -sSL https://get.docker.com/ | CHANNEL=stable bash + if [ "$lsb_dist" = "rhel" ]; then + dnf config-manager --add-repo=https://download.docker.com/linux/centos/docker-ce.repo + dnf -y install docker-ce + else + curl -sSL https://get.docker.com/ | CHANNEL=stable bash + fi - service docker start - systemctl enable docker + systemctl enable --now docker output "Enabling SWAP support for Docker." sed -i 's/GRUB_CMDLINE_LINUX_DEFAULT="[^"]*/& swapaccount=1/' /etc/default/grub output "Installing the Pterodactyl wings..."