Skip to content

Commit

Permalink
fix up
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Yuan <[email protected]>
  • Loading branch information
SamYuan1990 committed Apr 4, 2024
1 parent 2b4614f commit be020c8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,11 @@ ebpf() {
}

containerruntime() {
echo start install container runtime as docker
isUbuntu=$(grep -c Ubuntu /etc/os-release)
if [ "$isUbuntu" -gt 0 ]; then
# Add Docker's official GPG key:
echo install docker with apt
sudo apt-get update -y
sudo apt-get install ca-certificates curl gnupg -y
install -m 0755 -d /etc/apt/keyrings
Expand All @@ -158,9 +160,9 @@ containerruntime() {
apt-get update -y
apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin -y
else
sudo dnf -y install dnf-plugins-core
sudo dnf config-manager --add-repo https://download.docker.com/linux/fedora/docker-ce.repo
sudo dnf install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
sudo yum install -y yum-utils
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
sudo yum install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin -y
fi
}

Expand Down

0 comments on commit be020c8

Please sign in to comment.