You can any distribution for installation- Rocky/Alma/CentoS 8 Stream. I assume you’ll use anyone of these instance.
Step 1: Add Docker Repository
Docker is not yet available on default repositories. Thankfully, an official repository has been provided by developers and we are going to add it first to the system. On your terminal, run the following command to add the Docker repository
$ sudo dnf config-manager --add-repo=https://download.docker.com/linux/centos/docker-ce.repo
Step 2: Install Docker in Rocky Linux/AlmaLinux
Moving on, we are going to install the Docker community edition which is freely available for download and use. But first, update the packages.
$ sudo dnf update
Next, run the command below to install Docker CE, the command-line interface (CLI), and other essential tools and dependencies.