Centos Through a Vm - No Urls in Mirrorlist

CentOS through a VM - no URLs in mirrorlist

Check out this article: CentOS Linux EOL

The below commands helped me:

sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-Linux-*
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-Linux-*

Doing this will make DNF work, but you will no longer receive any updates.

To upgrade to CentOS 8 stream:

sudo dnf install centos-release-stream -y
sudo dnf swap centos-{linux,stream}-repos -y
sudo dnf distro-sync -y

Optionally reboot if your kernel updated (not needed in containers).

CentOS 7 in VirtualBox - could not resolve host: mirrorlist.centos.org

If there is a proxy, follow the steps described in this link https://docs.docker.com/engine/admin/systemd/#httphttps-proxy

You might also need to export the environment variables http_proxy and https_proxy

For the DNS configuration also consider adding the follow in /etc/systemd/system/docker.service.d/dns.conf:

[Service]
ExecStart=
ExecStart=/usr/bin/dockerd daemon -H fd:// --dns 8.8.8.8 --dns x.x.x.x --dns x.x.x.x

https://github.com/moby/moby/issues/19481#issuecomment-173469374



Related Topics



Leave a reply



Submit