From 84674f4ec32879578130df0c85b184bf4411509c Mon Sep 17 00:00:00 2001 From: "Gottfried, Kyle" <6462596+Spitfire1900@users.noreply.github.com> Date: Mon, 16 Nov 2026 08:44:11 -0500 Subject: [PATCH] docker: support ubi-10 EL 10 UBI repositories do not support iptables, so switch to recommends only on RHEL 10 or higher. Properly closes https://github.com/docker/docker-ce-packaging/issues/1215 Signed-off-by: Gottfried, Kyle <6462596+Spitfire1900@users.noreply.github.com> --- pkg/docker-engine/rpm/docker-ce.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/docker-engine/rpm/docker-ce.spec b/pkg/docker-engine/rpm/docker-ce.spec index 3009e86f..ebd78e6a 100644 --- a/pkg/docker-engine/rpm/docker-ce.spec +++ b/pkg/docker-engine/rpm/docker-ce.spec @@ -18,7 +18,12 @@ Requires: docker-ce-cli Recommends: docker-ce-rootless-extras Requires: container-selinux Requires: systemd +%if 0%{?rhel} >= 10 +# EL10 UBI repositories do not provide iptables or iptables-nft. +Recommends: (iptables-nft or iptables) +%else Requires: (iptables-nft or iptables) +%endif Requires: nftables %if %{undefined rhel} || 0%{?rhel} < 9 # Libcgroup is no longer available in RHEL/CentOS >= 9 distros.