Can you add a cat /etc/resolv.conf to your Dockerfile and report back?

On Jan 11, 2016, at 7:09 PM, Diego Spinola Castro <[email protected]>
wrote:

Hello, i need a custom image and i've created a bc to build a new image
from a Dockerfile hosted on github, so my dockerfile looks like this:

FROM openshift/php-55-centos7:latest
USER root
RUN yum clean all && yum -y reinstall glibc-common && yum clean all -y
USER 1001

I can confirm the build pod being launched but it fails with:

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

For some reason the pod can't resolve mirrorlist.centos.org, but other pods
can as the host also resolves names without issues.

I also have discovered that running docker build <Dockerfile> directly into
the host also fails.

I'd like to know if anybody else has the same issue

kubernetes v1.1.0-origin-1107-g4c8e6f4

docker-1.8.2-10.el7.centos.x86_64


_______________________________________________
dev mailing list
[email protected]
http://lists.openshift.redhat.com/openshiftmm/listinfo/dev
_______________________________________________
dev mailing list
[email protected]
http://lists.openshift.redhat.com/openshiftmm/listinfo/dev

Reply via email to