This issue arises due to the end of life (EOL) status of CentOS 7, which results in the inability to retrieve its mirrorlist. When building Docker images with CentOS 7, users experience broken builds as repositories are no longer maintained. Solutions include switching to CentOS Stream 8 or using an archived repository from CentOS Vault. Another option is moving to alternatives like AlmaLinux.
Daniel Marino
18 September 2024
Resolving CentOS 7 Mirrorlist Issues in Docker Builds After EOL