fix Bug 67990 - Add automatic installation of docker on RedHat (#240)

This commit is contained in:
Evgeniy Antonyuk 2024-05-16 12:32:38 +03:00 committed by GitHub
parent 0a652b552e
commit eb547c338f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -865,11 +865,20 @@ install_docker () {
elif [[ "${DIST}" == Red\ Hat\ Enterprise\ Linux* ]]; then
echo ""
echo "Your operating system does not allow Docker CE installation."
echo "You can install Docker EE using the manual here - https://docs.docker.com/engine/installation/linux/rhel/"
echo ""
exit 1;
if [[ "${REV}" -gt "7" ]]; then
yum remove -y docker docker-client docker-client-latest docker-common docker-latest docker-latest-logrotate docker-logrotate docker-engine podman runc > null
yum install -y yum-utils
yum-config-manager --add-repo https://download.docker.com/linux/rhel/docker-ce.repo
yum install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin
systemctl start docker
systemctl enable docker
else
echo ""
echo "Your operating system does not allow Docker CE installation."
echo "You can install Docker EE using the manual here - https://docs.docker.com/engine/installation/linux/rhel/"
echo ""
exit 1;
fi
elif [ "${DIST}" == "SuSe" ]; then