Skip to content

Commit

Permalink
Updated Docker Install for CentOS 8 and CentOS Stream
Browse files Browse the repository at this point in the history
  • Loading branch information
xosupernova committed Dec 8, 2020
1 parent e33f723 commit e31c6d7
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1435,12 +1435,8 @@ install_wings() {
yum -y install curl tar unzip
fi

if [[ ( "$lsb_dist" = "centos" || "$lsb_dist" = "rhel" ) && "$dist_version" = "8" ]]; then
curl -sSL https://raw.githubusercontent.com/tommytran732/CentOS-8-Docker-Script/master/get-docker.sh | sudo bash
else
output "Installing Docker"
curl -sSL https://get.docker.com/ | CHANNEL=stable bash
fi
output "Installing Docker"
curl -sSL https://get.docker.com/ | CHANNEL=stable bash

service docker start
systemctl enable docker
Expand Down Expand Up @@ -1483,12 +1479,8 @@ install_daemon() {
yum -y install curl tar unzip
fi

if [[ ( "$lsb_dist" = "centos" || "$lsb_dist" = "rhel" ) && "$dist_version" = "8" ]]; then
curl -sSL https://raw.githubusercontent.com/tommytran732/CentOS-8-Docker-Script/master/get-docker.sh | sudo bash
else
output "Installing Docker"
curl -sSL https://get.docker.com/ | CHANNEL=stable bash
fi
output "Installing Docker"
curl -sSL https://get.docker.com/ | CHANNEL=stable bash

service docker start
systemctl enable docker
Expand Down

0 comments on commit e31c6d7

Please sign in to comment.