I have a unique environment where i can’t have the VM or the containers access to the internet. I have a local NFS where I can pull updates/packages for installing for the CentoOS. We have a NFS share that is a mirror of Centos. I started up an Apache server on my local VM (where i also have docker and am trying build containers) to allow me to install updates to the OS etc. Now the webserver is accessible to all the systems on my lan (10.0.2.225), able to bring it up. But when i try to build the container I get " http://10.0.2.225/repo/centos/7/os/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - “Failed connect to 10.0.2.225:80; No route to host” for the line RUN yum update
Now I made a custom /etc/yum.repos.d/CentOS-Base.repo file where it points to this host: baseurl=http://10.0.2.225/repo/centos/$releasever/os/$basearch/
I was thinking it was the DNS problem I read able having the docker daemon point to my DNS server but that did not seem to fix the issue.
I really need containers to point and get their updates from my repository during a build and not the internet. If I am unable to do this docker will have no value to our organization.