mirror of
https://github.com/tommytran732/Pterodactyl-Script
synced 2024-11-22 18:41:32 -05:00
Fixed docker installation on RHEL 8
This commit is contained in:
parent
214216abc2
commit
ee9d651671
@ -718,10 +718,14 @@ install_wings() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
output "Installing Docker"
|
output "Installing Docker"
|
||||||
|
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
|
curl -sSL https://get.docker.com/ | CHANNEL=stable bash
|
||||||
|
fi
|
||||||
|
|
||||||
service docker start
|
systemctl enable --now docker
|
||||||
systemctl enable docker
|
|
||||||
output "Enabling SWAP support for Docker."
|
output "Enabling SWAP support for Docker."
|
||||||
sed -i 's/GRUB_CMDLINE_LINUX_DEFAULT="[^"]*/& swapaccount=1/' /etc/default/grub
|
sed -i 's/GRUB_CMDLINE_LINUX_DEFAULT="[^"]*/& swapaccount=1/' /etc/default/grub
|
||||||
output "Installing the Pterodactyl wings..."
|
output "Installing the Pterodactyl wings..."
|
||||||
|
Loading…
Reference in New Issue
Block a user