From 00b987e7deb9082c4147b424e31c6f41cb9f6237 Mon Sep 17 00:00:00 2001 From: Rob Murray Date: Mon, 6 Oct 2025 18:32:44 +0100 Subject: [PATCH] RPM: require "iptables-nft or iptables" Rather than requiring iptables-nft for RHEL10/Fedora43 and iptables for other versions and CentOS, use "(iptables-nft or iptables)". Signed-off-by: Rob Murray --- rpm/SPECS/docker-ce.spec | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/rpm/SPECS/docker-ce.spec b/rpm/SPECS/docker-ce.spec index 4048ea934c..5cd6e59793 100644 --- a/rpm/SPECS/docker-ce.spec +++ b/rpm/SPECS/docker-ce.spec @@ -19,12 +19,7 @@ Requires: docker-ce-cli Recommends: docker-ce-rootless-extras Requires: container-selinux Requires: systemd -%if (0%{?fedora} >= 43) || (0%{?rhel} >= 10) -# For Fedora >= 43 and RHEL >= 10, require iptables-nft -Requires: iptables-nft -%else -Requires: iptables -%endif +Requires: (iptables-nft or iptables) Requires: nftables %if %{undefined rhel} || 0%{?rhel} < 9 # Libcgroup is no longer available in RHEL/CentOS >= 9 distros.