Installing Docker Engine 26.1.3 on RHEL 8

RHEL 8.10

Install using the rpm repository

Set up the repository.

sudo dnf -y install dnf-plugins-core
sudo dnf config-manager --add-repo https://download.docker.com/linux/rhel/docker-ce.repo

Install the Docker packages.

sudo dnf install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
dnf list docker-ce --showduplicates | sort -r

docker-ce.x86_64 3:28.3.3-1.el9 docker-ce-stable
docker-ce.x86_64 3:28.3.2-1.el9 docker-ce-stable
<...>

sudo dnf install docker-ce-<VERSION_STRING> docker-ce-cli-<VERSION_STRING> containerd.io docker-buildx-plugin docker-compose-plugin

Start Docker Engine.

systemctl enable --now docker

Verify that the installation is successfully.

docker run hello-world

Install from a package

Download the following rpm files for the Docker Engine, CLI, containerd, and Docker Compose packages:

containerd.io-<version>.<arch>.rpm
docker-ce-<version>.<arch>.rpm
docker-ce-cli-<version>.<arch>.rpm
docker-buildx-plugin-<version>.<arch>.rpm
docker-compose-plugin-<version>.<arch>.rpm

Install Docker Engine.

dnf install /soft/containerd.io-1.7.27-3.1.el8.x86_64.rpm \
/soft/docker-ce-26.1.3-1.el8.x86_64.rpm \
/soft/docker-ce-cli-26.1.3-1.el8.x86_64.rpm \
/soft/docker-buildx-plugin-0.26.1-1.el8.x86_64.rpm \
/soft/docker-compose-plugin-2.39.1-1.el8.x86_64.rpm \
/soft/docker-ce-rootless-extras-28.3.3-1.el8.x86_64.rpm

Start Docker Engine.

systemctl enable --now docker

Verify that the installation is successfully.

docker run hello-world