Could Not Resolve Host Mirrorlist.centos.org | Invalid baseurl for repo | etc/profile & resolv.conf



#Error,#Profile,#Resolv Hello friend, Welcome back to my channel. This is troubleshooting tutorial. I have received few queries and understood that there are challenges in setting up docker when you are doing the installation behind a proxy a server. Basically for those who are connected from an enterprise environment, they will have to go through proxy server for installation of docker. Usually you will get error could not retrieve mirror list or invalid base url for repo due to unable to resolve host or proxy. This is basically because you need to set the proxy server and user authentication in the machine so that the download can go through the proxy server. Follow the steps as you see on the screen to fix this issue.

vi /etc/profile

export HTTP_PROXY=http://username:password@proxyservername:8080
export HTTPS_PROXY=http://username:password@proxyservername:8080

export http_proxy=http://username:password@proxyservername:8080

export https_proxy=http://username:password@proxyservername:8080

vi /etc/resolv.conf

nameserver 8.8.8.8
nameserver 8.8.4.4

=================================================
Follow me @:
https://www.instagram.com/thetips4you
https://www.youtube.com/channel/UCoOq…
https://www.facebook.com/thetipsforyou
http://www.thetips4you.com
======================================================

Note: Each word by Word or sentences used in this video is self written and converted to Audio to give explanation on the steps in each tutorial . These are not automated or third party content or scrapped from any website.

Music credit: “Royalty Free Music from Bensound”

Comments are closed.