Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

Commit

Permalink
ci: Fix docker installation for RHEL and CentOS kata 2.0
Browse files Browse the repository at this point in the history
This PR enables the possiblity to install the supported docker version
in CentOS and RHEL for kata 2.0

Fixes #2898

Signed-off-by: Gabriela Cervantes <gabriela.cervantes.tellez@intel.com>
  • Loading branch information
GabyCT committed Sep 29, 2020
1 parent 874194c commit 7b1886f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cmd/container-manager/manage_ctr_mgr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,8 @@ install_docker(){
sudo -E yum install -y yum-utils
repo_url="https://download.docker.com/linux/centos/docker-ce.repo"
sudo yum-config-manager --add-repo "$repo_url"
if [ "$ID" == "centos" ] && [ "$VERSION_ID" -ge "8" ]; then
sudo sed -i 's/$releasever/7/g' /etc/yum.repos.d/docker-ce.repo
fi
# This will enable the possiblity to install the supported docker version
sudo sed -i 's/$releasever/7/g' /etc/yum.repos.d/docker-ce.repo
sudo yum makecache
docker_version_full=$(yum --showduplicate list "$pkg_name" | \
grep "$docker_version" | awk '{print $2}' | tail -1 | cut -d':' -f2)
Expand Down

0 comments on commit 7b1886f

Please # to comment.