I’m currently running into an issue with my docker builds that rely on centos7
I reference the image as follows:
FROM centos:7
Error:
`Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=genclo error was
curl#6 – "Could not resolve host: mirrorlist.centos.org; Unknown error"`
I understand centos7 was EOL on June 30, 2024; however, I didn’t think this would break builds?
Is there something I’m missing and need to change on my end? Do I need to point to a different image?
2
Answers
According to https://www.centos.org/download/mirrors/
Starting from CentOS Stream 9 , mirrors are listed in Mirrormanager so use this link – https://mirrormanager.fedoraproject.org/mirrors/CentOS
You should use next commands inside your docker container