Since the Docker environment that I was able to use until now could not be launched from the beginning of December, I checked it and found that the epel package could not be introduced due to the end of life of centos 6 at the end of November. It was.
RUN rpm -ivh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
The repository location was 404, so I changed it to refer to the archive directory.
FROM centos:6
RUN sed -i "s|#baseurl=|baseurl=|g" /etc/yum.repos.d/CentOS-Base.repo
RUN sed -i "s|mirrorlist=|#mirrorlist=|g" /etc/yum.repos.d/CentOS-Base.repo
RUN sed -i "s|http://mirror\.centos\.org/centos/\$releasever|https://vault\.centos\.org/6.10|g" /etc/yum.repos.d/CentOS-Base.repo
RUN rpm -ivh http://dl.fedoraproject.org/pub/archive/epel/6/i386/epel-release-6-8.noarch.rpm
http://smoogespace.blogspot.com/2020/10/rhel-6centos-6scilin-6epel-6-end-of.html https://qiita.com/y-do/items/b23d24a647cb99528b16
I think it's best to update to centos7 when support is out, but there are some who can't because of adult circumstances. ..
Recommended Posts