Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing native Docker on AlmaLinux 8 #42337

Closed
jochenw opened this issue Apr 29, 2021 · 2 comments
Closed

Installing native Docker on AlmaLinux 8 #42337

jochenw opened this issue Apr 29, 2021 · 2 comments
Labels
area/packaging kind/enhancement Enhancements are not bugs or new features but can improve usability or performance.

Comments

@jochenw
Copy link

jochenw commented Apr 29, 2021

Hi,

I hope, this is the proper place to report this issue. If not, please let me know.

According to get.docker.com, Docker should be installable on AlmaLinux 8 (basically a successor of CentOS 8) with the following steps:

    curl -fsSL https://get.docker.com -o get-docker.sh
    sudo sh get-docker.sh

In practice, this doesn't actually work, due to an error message

    ERROR: Unsupported distribution 'almalinux'

To actually install Docker on AlmaLinux 8, the following changes are necessary:

  1. Due to a dependency conflict between Docker on the one side, and buildah, podman, etc. on the other, one needs to do a sudo dnf -y remove runc in advance. (This is not specific to AlmaLinux, the same is necessary on CentOS, and RHEL.)

  2. A simple patch must be applied to get.docker.sh (see below). Note, that the patch may result in an invalid download URL for fedora, I was keeping things simple):

      [jwi@gitjndhost ~]$ diff -ub get-docker-orig.sh get-docker.sh
      --- get-docker-orig.sh	2021-04-28 12:10:12.477498011 +0200
      +++ get-docker.sh	2021-04-28 12:03:23.300011495 +0200
      @@ -342,7 +342,7 @@
     	esac
     ;;
    
     -		centos|rhel)
    +		centos|rhel|almalinux)
     	if [ -z "$dist_version" ] && [ -r /etc/os-release ]; then
     		dist_version="$(. /etc/os-release && echo "$VERSION_ID")"
     	fi
     @@ -427,8 +427,8 @@
     	echo_docker_as_nonroot
     	exit 0
     	;;
     -		centos|fedora|rhel)
     -			yum_repo="$DOWNLOAD_URL/linux/$lsb_dist/$REPO_FILE"
     +		centos|fedora|rhel|almalinux)
     +			yum_repo="$DOWNLOAD_URL/linux/centos/$REPO_FILE"
     	if ! curl -Ifs "$yum_repo" > /dev/null; then
     		echo "Error: Unable to curl repository file $yum_repo, is it valid?"
     		exit 1
    
@AkihiroSuda AkihiroSuda added area/packaging kind/enhancement Enhancements are not bugs or new features but can improve usability or performance. labels Apr 30, 2021
@jhg03a
Copy link

jhg03a commented May 10, 2021

RockyLinux is also available now too

@jochenw
Copy link
Author

jochenw commented May 16, 2021

Closing in favour of docker/docker-install#228.

@jochenw jochenw closed this as completed May 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/packaging kind/enhancement Enhancements are not bugs or new features but can improve usability or performance.
Projects
None yet
Development

No branches or pull requests

3 participants