Docker Community Forums

Share and learn in the Docker community.

Installing Docker on AlmaLinux 8.3

Hi,

not really sure, where to report this. Hopefully, this will reach people who are interested.

Installation of Docker on AlmaLinux 8.3 (basically a successor of CentOS 8.3) doesn’t work out of the box. Instead, the following tweaks are required:

  1. Deinstall podman, buildah, etc. due to a minor dependency conflict:

sudo dnf -y remove runc

Note: This step is required on CentOS 8.3, and RHEL, too.

2.) Fix get-docker.sh (as downloaded from get.docker.com) by applying the following patch. (Note, that this patch would break the download URL on Fedora.)

[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

This post was flagged by the community and is temporarily hidden.

Hi

I think you need to report this on: GitHub - moby/moby: Moby Project - a collaborative project for the container ecosystem to assemble container-based systems

Thanks, Martin, I have created an issue.