Skip to content

cannot retreive a mirror list when yum updating

Well I didn't manage to go further when I did the 1st build for a km3base image by performing the line below as I followed the step

cd km3base
docker build -t km3/km3base:1.0

Just after the 1st RUN of docker

 => ERROR [2/6] RUN yum clean all &&  yum -y update                                                                                                                        0.9s

I have this issue,

0.841 Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=container error was
0.841 14: curl#6 - "Could not resolve host: mirrorlist.centos.org; Unknown error"

Even though I fetched

FROM centos:centos7.9.2009

or

FROM centos:7

Maybe the version 7 is quite old ? today I am testing on ubuntu but I would like to do on RockyLinux to have the officiel linux official flavor

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Ubuntu 22.04.5 LTS"