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

Solution Unverified - Updated -


  • Registered RHEL 7 system with Subscription Manager.
  • Getting below error on building an image :
[]# docker build -t <> .
Uploading context 3.584 kB
Uploading context 
Step 0 : FROM
Pulling repository
f5f7ddddef7d: Download complete 
 ---> f5f7ddddef7d
Step 1 : MAINTAINER "Scott Collier" <>
 ---> 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. [Errno 12] Timeout on (28, 'Resolving timed out after 30384 milliseconds')
Trying other mirror.


  • 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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content