Since Docker is not available in the default RHEL 9 AppStream repositories, you must add the official Docker CentOS repository. RHEL 9 is binary-compatible with CentOS Stream 9, so this repository works perfectly. sudo yum-config-manager --add-repo docker.com Step 4: Install Docker Engine
Installing Docker on Red Hat Enterprise Linux (RHEL) 9 requires a slightly different approach than other distributions because Red Hat officially promotes Podman as its native container engine. However, Docker remains the industry standard for many development workflows and CI/CD pipelines. docker download rhel 9
The yum-utils package provides the config-manager utility, which makes it easy to manage your repositories. sudo dnf install -y yum-utils Step 3: Add the Docker Repository Since Docker is not available in the default
RHEL 9 comes with podman and buildah pre-installed or available in the default repositories. To prevent dependency errors with Docker’s containerd.io , it is recommended to remove them: sudo dnf remove -y podman buildah Step 2: Install the yum-utils Package However, Docker remains the industry standard for many
Create the docker group (if it doesn't already exist):sudo groupadd docker Add your user to the group:sudo usermod -aG docker $USER Apply the changes:newgrp docker Step 7: Verify the Installation