Update install_docker.sh

This commit is contained in:
赵璟 2025-01-09 15:32:41 +08:00 committed by GitHub
parent ff6ee8b791
commit 7fae912b50
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -114,6 +114,11 @@ install_docker_custom() {
sudo dnf makecache
sudo dnf install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
else
if [ "$lsb_dist" = "ol" ] && grep -q 'VERSION_ID="7' /etc/os-release; then
echo "[Websoft9] - Detected Oracle Linux 7. Executing specific installation steps."
sudo yum install -y oraclelinux-developer-release-el7
sudo yum-config-manager --enable ol7_preview
fi
repos=("${repos_base[@]/%//${lsb_dist}/docker-ce.repo}")
sudo dnf remove -y podman || sudo yum remove -y podman