Upon trying to install cPanel from centos-7-x86_64-ez-panels application template the error is shown:
~]# vzpkg install CT101 cpanel base0 | 2.9 kB 00:00:00 ...
2023-06-21 17:30:30 709  (FATAL): cPanel & WHM no longer support Red Hat 6 & 7 based distributions on version 112 or greater. For more information, read about our supported versions at https://go.cpanel.net/system-requirements /vztt0vR07r/script: line 6: /usr/local/cpanel/scripts/configure_firewall_for_cpanel: No such file or directory
cPanel no longer support Red Hat 6 & 7 based distributions, so installation of the latest version of cPanel fails in Centos 7 containers as well.
Please visit the system requirements page on official cPanel website to choose another OS distribution that is supported by cPanel.