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.