sudo dnf config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
Docker provides CentOS/RHEL repos, which are compatible with AlmaLinux since it’s RHEL-compatible.
sudo dnf install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin -y
sudo systemctl enable --now docker
docker run hello-world