Docker build failed with [Error 12] Timeout in RHEL 7

Solution Unverified - Updated -

Issue

  • Registered RHEL 7 system with Subscription Manager.
  • Getting below error on building an image :
[root@example.com]# docker build -t <image.name> .
Uploading context 3.584 kB
Uploading context 
Step 0 : FROM registry.access.redhat.com/redhat/rhel7
Pulling repository registry.access.redhat.com/redhat/rhel7
f5f7ddddef7d: Download complete 
 ---> f5f7ddddef7d
Step 1 : MAINTAINER "Scott Collier" <scollier@redhat.com>
 ---> Running in 40038bb2a854
 ---> d562b68f7a5c
Removing intermediate container 40038bb2a854
Step 2 : RUN yum -y update; yum clean all
 ---> Running in 15f04d1d8cf8
Loaded plugins: product-id, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
https://cdn.redhat.com/content/rc/rhel/server/7/x86_64/os/repodata/repomd.xml: [Errno 12] Timeout on https://cdn.redhat.com/content/rc/rhel/server/7/x86_64/os/repodata/repomd.xml: (28, 'Resolving timed out after 30384 milliseconds')
Trying other mirror.

Environment

  • Red Hat Enterprise Linux 7.0
  • docker-0.11.1-19.el7.x86_64

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In